Skip to content

Commit 7513467

Browse files
committed
modified test
1 parent 8c10efb commit 7513467

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-runner-run.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,13 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
469469

470470
it('should pass instance of stream to setup', async () => {
471471
const stream = run({
472-
files: [],
473-
setup: (root) => {
472+
files: [join(testFixtures, 'default-behavior/test/random.cjs')],
473+
setup: common.mustCall((root) => {
474474
assert(root instanceof testStream);
475-
},
475+
}),
476476
});
477477
stream.on('test:fail', common.mustNotCall());
478-
stream.on('test:pass', common.mustNotCall());
478+
stream.on('test:pass', common.mustCall());
479479
// eslint-disable-next-line no-unused-vars
480480
for await (const _ of stream);
481481
});

0 commit comments

Comments
 (0)