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
PR-URL: #32544
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
himself65 authored and targos committed Apr 11, 2020
1 parent cca269c commit 079a32e
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 079a32e

Please sign in to comment.