Skip to content

Commit

Permalink
tests(webpack-cli): add more cases in version-multi-args-test
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Apr 2, 2020
1 parent b891357 commit fee0c2d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/version/version-multi-args.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,28 @@ describe('version flag with multiple arguments', () => {
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['--version', '--info-verbosity', 'none']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['--version', '--info-verbosity', 'verbose']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['--version', '--info-verbosity', 'thisislatest']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['--version', '--info-verbosity', 'info']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});
});

0 comments on commit fee0c2d

Please sign in to comment.