Skip to content

Commit f1fe344

Browse files
committed
fix(tests): incorrect test (should use existing result)
Since `readFileSync` is only stubbed `onFirstCall` we get a different answer the second time around which is probably Not What You Want. But also we *already checked that config = false*. So you could just remove this test, it does nothing useful.
1 parent 6d8e90d commit f1fe344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/node-unit/cli/options.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ describe('options', function () {
318318
});
319319

320320
it('should set config = false', function () {
321-
expect(loadOptions(), 'to have property', 'config', false);
321+
expect(result, 'to have property', 'config', false);
322322
});
323323
});
324324

0 commit comments

Comments
 (0)