Skip to content

Commit

Permalink
feat: test case for passing in unknown flags (#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored Feb 12, 2020
1 parent f1f05d8 commit e0c359e
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('warns the user if an unknown flag is passed in', () => {
const { stderr } = run(__dirname, ['--unknown']);
expect(stderr).toBeTruthy();
expect(stderr).toContain('Unknown argument: --unknown');
});
});

0 comments on commit e0c359e

Please sign in to comment.