Fix constructor test

experimental-options
cgewecke 3 years ago
parent a3b4d72664
commit 33586e26f6
  1. 2
      test/units/assert.js
  2. 4
      test/units/function.js

@ -5,7 +5,7 @@ const client = require('ganache-cli');
const Coverage = require('./../../lib/coverage');
const Api = require('./../../lib/api')
describe.only('asserts and requires', () => {
describe('asserts and requires', () => {
let coverage;
let api;

@ -103,14 +103,14 @@ describe('function declarations', () => {
const mapping = coverage.generate(contract.data, util.pathPrefix);
assert.deepEqual(mapping[util.filePath].l, {
6: 2, 11: 1 // Doubled line-hit
6: 1, 11: 1 // Doubled line-hit
});
assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, {
1: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 2,
1: 1,
2: 1,
});
});

Loading…
Cancel
Save