Update tests for adjusted statement coverage

experimental-options
cgewecke 3 years ago
parent ca1e23b2bb
commit c650762051
  1. 24
      test/units/conditional.js

@ -5,7 +5,7 @@ const client = require('ganache-cli');
const Coverage = require('./../../lib/coverage');
const Api = require('./../../lib/api')
describe('ternary conditionals', () => {
describe.only('ternary conditionals', () => {
let coverage;
let api;
@ -33,7 +33,7 @@ describe('ternary conditionals', () => {
1: [1, 0],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -50,7 +50,7 @@ describe('ternary conditionals', () => {
1: [1, 0],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -67,7 +67,7 @@ describe('ternary conditionals', () => {
1: [1, 0],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -84,7 +84,7 @@ describe('ternary conditionals', () => {
1: [0, 1], 2: [1, 0],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -101,7 +101,7 @@ describe('ternary conditionals', () => {
1: [0, 1], 2: [1, 0],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -118,7 +118,7 @@ describe('ternary conditionals', () => {
1: [0, 0], 2: [0, 1],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -135,7 +135,7 @@ describe('ternary conditionals', () => {
1: [0, 1],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -152,7 +152,7 @@ describe('ternary conditionals', () => {
1: [1, 0],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -169,7 +169,7 @@ describe('ternary conditionals', () => {
1: [0, 1],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1,
1: 1, 2: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -205,7 +205,7 @@ describe('ternary conditionals', () => {
1: [0, 1],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1, 4: 1,
1: 1, 2: 1, 3: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,
@ -222,7 +222,7 @@ describe('ternary conditionals', () => {
1: [0, 1],
});
assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1,
1: 1,
});
assert.deepEqual(mapping[util.filePath].f, {
1: 1,

Loading…
Cancel
Save