Skip to content

Commit b2e1fe4

Browse files
committed
fix test name
1 parent 7e4adca commit b2e1fe4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/parallel/test-runner-run.mjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,7 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
504504
describe('coverage report for test stream', () => {
505505
it('should run coverage report', async () => {
506506
const stream = run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')],
507-
coverage: {
508-
lines: 100,
509-
functions: 100,
510-
branches: 100
511-
} });
507+
coverage: true });
512508
stream.on('test:fail', common.mustNotCall());
513509
stream.on('test:pass', common.mustCall());
514510
stream.on('test:coverage', common.mustCall());
@@ -517,23 +513,27 @@ describe('coverage report for test stream', () => {
517513
for await (const _ of stream);
518514
});
519515

520-
it('should run coverage report', async () => {
516+
it('test coverage with minimum 100% threshold value', async () => {
521517
const stream = run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')],
522-
coverage: false });
518+
coverage: {
519+
lines: 100,
520+
functions: 100,
521+
branches: 100
522+
} });
523523
stream.on('test:fail', common.mustNotCall());
524-
stream.on('test:coverage', common.mustNotCall());
525524
stream.on('test:pass', common.mustCall());
525+
stream.on('test:coverage', common.mustCall());
526526

527527
// eslint-disable-next-line no-unused-vars
528528
for await (const _ of stream);
529529
});
530530

531-
it('should run coverage report', async () => {
531+
it('should not run coverage report', async () => {
532532
const stream = run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')],
533-
coverage: true });
533+
coverage: false });
534534
stream.on('test:fail', common.mustNotCall());
535+
stream.on('test:coverage', common.mustNotCall());
535536
stream.on('test:pass', common.mustCall());
536-
stream.on('test:coverage', common.mustCall());
537537

538538
// eslint-disable-next-line no-unused-vars
539539
for await (const _ of stream);

0 commit comments

Comments
 (0)