Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! test: print arguments passed to mustNotCall function
  • Loading branch information
lundibundi committed Jun 18, 2020
commit eb860d0f437a61c63e51026e51a9d2844d63a55e
4 changes: 2 additions & 2 deletions test/parallel/test-common-must-not-call.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ const createValidate = (line, args = []) => common.mustCall((e) => {
assert.strictEqual(rest, line + argsInfo);
});

const validate1 = createValidate('9')
const validate1 = createValidate('9');
try {
testFunction1();
} catch (e) {
validate1(e);
}

const validate2 = createValidate('11', ['hello', 42])
const validate2 = createValidate('11', ['hello', 42]);
try {
testFunction2('hello', 42);
} catch (e) {
Expand Down