Skip to content

Commit e0f4716

Browse files
dygaboGeoffreyBooth
andcommitted
Apply suggestions from code review
Co-authored-by: Geoffrey Booth <[email protected]>
1 parent e524c94 commit e0f4716

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

test/es-module/test-esm-loader-threads.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ describe('off-thread hooks', { concurrency: true }, () => {
1616
fixtures.path('es-module-loaders/workers-spawned.mjs'),
1717
]);
1818

19-
console.log(stderr);
20-
console.log(stdout);
21-
2219
strictEqual(stderr, '');
2320
strictEqual(stdout.split('\n').filter((line) => line.startsWith('initialize')).length, 1);
2421
strictEqual(stdout.split('\n').filter((line) => line === 'foo').length, 2);
@@ -33,7 +30,7 @@ describe('off-thread hooks', { concurrency: true }, () => {
3330
// 6x module-named-exports.mjs => 2x worker-log.mjs + 4x worker-log-again.mjs
3431
// ===========================
3532
// 16 calls to resolve + 16 calls to load hook for the registered custom loader
36-
// 6 additional calls to resolve because of the modeul.register being allowed from worker threads (happens
33+
// 6 additional calls to resolve because of the module.register being allowed from worker threads (happens
3734
// implicitly because of the --import on the main thread)
3835
strictEqual(stdout.split('\n').filter((line) => line.startsWith('hooked resolve')).length, 22);
3936
strictEqual(stdout.split('\n').filter((line) => line.startsWith('hooked load')).length, 16);

0 commit comments

Comments
 (0)