Skip to content

Commit

Permalink
fix: throws for invalid paths test case
Browse files Browse the repository at this point in the history
  • Loading branch information
servusdei2018 committed Nov 14, 2024
1 parent 6c1bfe8 commit 80d47d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/test/cli/printer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ describe('Printer', () => {
});

it('throws for invalid paths', () => {
const path = '!/#@.json';
const path = '//#@.json';
const report = JSON.stringify(sampleResults);
return Printer.write(report, 'html', path).catch(err => {
assert.ok(err.code === 'ENOENT');
});
return assert.rejects(Printer.write(report, 'html', path));
});

it('returns output modes', () => {
Expand Down

0 comments on commit 80d47d9

Please sign in to comment.