Skip to content

Commit

Permalink
Fix assert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Apr 26, 2022
1 parent 0ba3f11 commit cf126ea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/units/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const client = require('ganache-cli');
const Coverage = require('./../../lib/coverage');
const Api = require('./../../lib/api')

describe('asserts and requires', () => {
describe.only('asserts and requires', () => {
let coverage;
let api;

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

assert.deepEqual(mapping[util.filePath].l, {
5: 2,
5: 1,
});
assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, {
1: 2,
1: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 2,
1: 1,
});
});

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

const mapping = coverage.generate(contract.data, util.pathPrefix);
assert.deepEqual(mapping[util.filePath].l, {
5: 4,
5: 2,
});
assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, {
1: 4,
1: 2,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 4,
1: 2,
});
});

Expand Down

0 comments on commit cf126ea

Please sign in to comment.