Skip to content

Commit

Permalink
feat: test case for passing in unknown flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Feb 10, 2020
1 parent 237887b commit 8f58e12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/default/default.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { run } = require('../utils/test-utils');

describe('default behaviour', () => {
it('shows up help information if an unknown flag is supplied', () => {
const { stderr } = run(__dirname, ['--unknown']);
expect(stderr).toBeTruthy();
expect(stderr).toContain('Unknown argument: --unknown');
});
});

0 comments on commit 8f58e12

Please sign in to comment.