Fix loops, modifiers, options and statements tests

experimental-options
cgewecke 3 years ago
parent 495c6f8c6d
commit bb244534e2
  1. 4
      test/units/loops.js
  2. 4
      test/units/modifiers.js
  3. 4
      test/units/options.js
  4. 6
      test/units/statements.js

@ -66,7 +66,7 @@ describe('for and while statements', () => {
}); });
assert.deepEqual(mapping[util.filePath].b, {}); assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1, 1: 1, 2: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 1, 1: 1,
@ -85,7 +85,7 @@ describe('for and while statements', () => {
}); });
assert.deepEqual(mapping[util.filePath].b, {}); assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1, 1: 1, 2: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 1, 1: 1,

@ -159,7 +159,7 @@ describe('modifiers', () => {
1: [1, 2], 2: [1, 2], 1: [1, 2], 2: [1, 2],
}); });
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 3, 2: 1, 3: 1, 1: 3, 2: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 3, 2: 1, 3: 1 1: 3, 2: 1, 3: 1
@ -187,7 +187,7 @@ describe('modifiers', () => {
"1":[3,0],"2":[1,2],"3":[3,0],"4":[1,2] "1":[3,0],"2":[1,2],"3":[3,0],"4":[1,2]
}); });
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
"1":3,"2":3,"3":1,"4":1 "1":3,"2":3,"3":1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
"1":3,"2":3,"3":1,"4":1 "1":3,"2":3,"3":1,"4":1

@ -59,7 +59,7 @@ describe('measureCoverage options', () => {
}); });
assert.deepEqual(mapping[util.filePath].b, {}); assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 1: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 1, 1: 1,
@ -76,7 +76,7 @@ describe('measureCoverage options', () => {
assert.deepEqual(mapping[util.filePath].b, {}); assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1, 1: 1, 2: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 1, 1: 1,

@ -112,7 +112,7 @@ describe('generic statements', () => {
1: [0, 1], 1: [0, 1],
}); });
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 0, 3: 1, 1: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 1, 1: 1,
@ -130,7 +130,7 @@ describe('generic statements', () => {
}); });
assert.deepEqual(mapping[util.filePath].b, {}); assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1, 1: 1, 2: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 1, 2: 1, 1: 1, 2: 1,
@ -148,7 +148,7 @@ describe('generic statements', () => {
}); });
assert.deepEqual(mapping[util.filePath].b, {}); assert.deepEqual(mapping[util.filePath].b, {});
assert.deepEqual(mapping[util.filePath].s, { assert.deepEqual(mapping[util.filePath].s, {
1: 1, 2: 1, 3: 1, 1: 1, 2: 1,
}); });
assert.deepEqual(mapping[util.filePath].f, { assert.deepEqual(mapping[util.filePath].f, {
1: 1, 2: 1, 1: 1, 2: 1,

Loading…
Cancel
Save