Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip test in __tests__/index.js for win32 platform: it does some tric… #2748

Merged
merged 1 commit into from
Feb 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ test.concurrent('should run help of run command if --help is before --', async (
.toEqual('Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.');
});

test.concurrent('should run help of custom-script if --help is after --', async () => {
const stdout = await execCommand('run', ['custom-script', '--', '--help'], 'run-custom-script-with-arguments');
expect(stdout[stdout.length - 2]).toEqual('A message from custom script with args --help');
});
if (process.platform !== 'win32') {
test.concurrent('should run help of custom-script if --help is after --', async () => {
const stdout = await execCommand('run', ['custom-script', '--', '--help'], 'run-custom-script-with-arguments');
expect(stdout[stdout.length - 2]).toEqual('A message from custom script with args --help');
});
}