Skip to content

Commit

Permalink
fix test name
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit-30 committed Dec 25, 2023
1 parent 57f7404 commit 940666b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/parallel/test-runner-run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,7 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
describe('coverage report for test stream', () => {
it('should run coverage report', async () => {
const stream = run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')],
coverage: {
lines: 100,
functions: 100,
branches: 100
} });
coverage: true });
stream.on('test:fail', common.mustNotCall());
stream.on('test:pass', common.mustCall());
stream.on('test:coverage', common.mustCall());
Expand All @@ -530,23 +526,27 @@ describe('coverage report for test stream', () => {
for await (const _ of stream);
});

it('should run coverage report', async () => {
it('test coverage with minimum 100% threshold value', async () => {
const stream = run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')],
coverage: false });
coverage: {
lines: 100,
functions: 100,
branches: 100
} });
stream.on('test:fail', common.mustNotCall());
stream.on('test:coverage', common.mustNotCall());
stream.on('test:pass', common.mustCall());
stream.on('test:coverage', common.mustCall());

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

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

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

0 comments on commit 940666b

Please sign in to comment.