Skip to content

Commit cf126ea

Browse files
committed
Fix assert tests
1 parent 0ba3f11 commit cf126ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/units/assert.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const client = require('ganache-cli');
55
const Coverage = require('./../../lib/coverage');
66
const Api = require('./../../lib/api')
77

8-
describe('asserts and requires', () => {
8+
describe.only('asserts and requires', () => {
99
let coverage;
1010
let api;
1111

@@ -26,14 +26,14 @@ describe('asserts and requires', () => {
2626
const mapping = coverage.generate(contract.data, util.pathPrefix);
2727

2828
assert.deepEqual(mapping[util.filePath].l, {
29-
5: 2,
29+
5: 1,
3030
});
3131
assert.deepEqual(mapping[util.filePath].b, {});
3232
assert.deepEqual(mapping[util.filePath].s, {
33-
1: 2,
33+
1: 1,
3434
});
3535
assert.deepEqual(mapping[util.filePath].f, {
36-
1: 2,
36+
1: 1,
3737
});
3838
});
3939

@@ -47,14 +47,14 @@ describe('asserts and requires', () => {
4747

4848
const mapping = coverage.generate(contract.data, util.pathPrefix);
4949
assert.deepEqual(mapping[util.filePath].l, {
50-
5: 4,
50+
5: 2,
5151
});
5252
assert.deepEqual(mapping[util.filePath].b, {});
5353
assert.deepEqual(mapping[util.filePath].s, {
54-
1: 4,
54+
1: 2,
5555
});
5656
assert.deepEqual(mapping[util.filePath].f, {
57-
1: 4,
57+
1: 2,
5858
});
5959
});
6060

0 commit comments

Comments
 (0)