mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: use common.mustCall in test-worker-esm-exit
PR-URL: https://github.com/nodejs/node/pull/32544 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
cca269c3a0
commit
079a32e31c
1 file changed
+3
-1
@@ -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))
|
||||
);
|
||||
Reference in new issue
Block a user