Skip to content

Commit

Permalink
chore: Added test case for providing unknown flags along with -… (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jan 31, 2020
1 parent dae9982 commit f25c557
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/node/node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@ describe('node flags', () => {
done();
});
});

it('throws an error on supplying unknown flags', () => {
const { stderr } = run(__dirname, ['--node-args', '--unknown']);
expect(stderr).toContain('node: bad option:');
});
});

0 comments on commit f25c557

Please sign in to comment.