Skip to content
Closed
Changes from all commits
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
test: use common.mustCall in test-worker-esm-exit
  • Loading branch information
himself65 committed Mar 29, 2020
commit 7a3d56aaa40c86bf218151a720cd0a3640766202
4 changes: 3 additions & 1 deletion test/parallel/test-worker-esm-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ const { Worker } = require('worker_threads');

const w = new Worker(fixtures.path('es-modules/import-process-exit.mjs'));
w.on('error', common.mustNotCall());
w.on('exit', (code) => assert.strictEqual(code, 42));
w.on('exit',
common.mustCall((code) => assert.strictEqual(code, 42))
);