Skip to content

Commit

Permalink
modified test
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit-30 committed Dec 4, 2023
1 parent 8c10efb commit 7513467
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-runner-run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,13 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {

it('should pass instance of stream to setup', async () => {
const stream = run({
files: [],
setup: (root) => {
files: [join(testFixtures, 'default-behavior/test/random.cjs')],
setup: common.mustCall((root) => {
assert(root instanceof testStream);
},
}),
});
stream.on('test:fail', common.mustNotCall());
stream.on('test:pass', common.mustNotCall());
stream.on('test:pass', common.mustCall());
// eslint-disable-next-line no-unused-vars
for await (const _ of stream);
});
Expand Down

0 comments on commit 7513467

Please sign in to comment.