Skip to content

Commit

Permalink
test: use common.mustCall in test-worker-esm-exit
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Mar 29, 2020
1 parent cd1db2d commit 7a3d56a
Showing 1 changed file with 3 additions and 1 deletion.
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))
);

0 comments on commit 7a3d56a

Please sign in to comment.