Skip to content

Commit bf53a70

Browse files
committed
chore: removed redundant test
1 parent 1d796af commit bf53a70

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

index.test.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,6 @@ For example:
5757
}
5858
});
5959

60-
test('empty LCOV throws an error', () => {
61-
const lcovPath = './fixtures/lcov.empty.info';
62-
process.env['INPUT_PATH'] = lcovPath;
63-
const ip = path.join(__dirname, 'index.js');
64-
try {
65-
cp.execSync(`node ${ip}`, { env: process.env });
66-
fail('this code should fail');
67-
} catch (err) {
68-
expect(err).toBeDefined();
69-
70-
const errorMessage = err.stdout.toString().replace(/%0A/g, '\n');
71-
expect(errorMessage).toContain(
72-
`❌ Found an empty lcov file at "${lcovPath}".
73-
An empty lcov file was found but with no coverage data. This might be because \
74-
you have no test files or your tests are not generating any coverage data.
75-
`
76-
);
77-
}
78-
});
79-
8060
test('invalid LCOV format throws an error', () => {
8161
const lcovPath = './fixtures/lcov.error.info';
8262
process.env['INPUT_PATH'] = lcovPath;

0 commit comments

Comments
 (0)