Skip to content

Commit

Permalink
chore: remove export = from e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 9, 2022
1 parent 5fdbf84 commit b89a1bb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
42 changes: 21 additions & 21 deletions e2e/__tests__/__snapshots__/coverageRemapping.test.ts.snap
Expand Up @@ -183,11 +183,11 @@ Object {
"0": Object {
"decl": Object {
"end": Object {
"column": 28,
"column": 26,
"line": 10,
},
"start": Object {
"column": 18,
"column": 16,
"line": 10,
},
},
Expand All @@ -197,7 +197,7 @@ Object {
"line": 17,
},
"start": Object {
"column": 49,
"column": 47,
"line": 10,
},
},
Expand Down Expand Up @@ -256,23 +256,13 @@ Object {
"1": 1,
"2": 1,
"3": 1,
"4": 1,
"4": 0,
"5": 0,
"6": 0,
"6": 1,
"7": 1,
},
"statementMap": Object {
"0": Object {
"end": Object {
"column": 2,
"line": 17,
},
"start": Object {
"column": 0,
"line": 10,
},
},
"1": Object {
"end": Object {
"column": 39,
"line": 11,
Expand All @@ -282,7 +272,7 @@ Object {
"line": 11,
},
},
"2": Object {
"1": Object {
"end": Object {
"column": 39,
"line": 12,
Expand All @@ -292,7 +282,7 @@ Object {
"line": 12,
},
},
"3": Object {
"2": Object {
"end": Object {
"column": 48,
"line": 13,
Expand All @@ -302,7 +292,7 @@ Object {
"line": 13,
},
},
"4": Object {
"3": Object {
"end": Object {
"column": 53,
"line": 14,
Expand All @@ -312,7 +302,7 @@ Object {
"line": 14,
},
},
"5": Object {
"4": Object {
"end": Object {
"column": 41,
"line": 14,
Expand All @@ -322,7 +312,7 @@ Object {
"line": 14,
},
},
"6": Object {
"5": Object {
"end": Object {
"column": 54,
"line": 14,
Expand All @@ -332,7 +322,7 @@ Object {
"line": 14,
},
},
"7": Object {
"6": Object {
"end": Object {
"column": 15,
"line": 16,
Expand All @@ -342,6 +332,16 @@ Object {
"line": 16,
},
},
"7": Object {
"end": Object {
"column": 16,
"line": 10,
},
"start": Object {
"column": 0,
"line": 10,
},
},
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/coverage-remapping/__tests__/coveredTest.ts
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

const difference = require('../covered.ts');
const {difference} = require('../covered.ts');

it('subtracts correctly', () => {
expect(difference(3, 2)).toBe(1);
Expand Down
4 changes: 2 additions & 2 deletions e2e/coverage-remapping/covered.ts
Expand Up @@ -7,11 +7,11 @@

/* eslint-disable local/ban-types-eventually */

export = function difference(a: number, b: number): number {
export function difference(a: number, b: number): number {
const branch1: boolean = true ? 1 : 0;
const branch2: boolean = true ? 1 : 0;
const branch3: boolean = true || true || false;
const fn: Function = true ? () => null : () => null;

return a - b;
};
}
2 changes: 1 addition & 1 deletion e2e/typescript-coverage/__tests__/coveredTest.ts
Expand Up @@ -6,6 +6,6 @@
*/

it('adds 1 + 2 to equal 3 in TScript', () => {
const sum = require('../covered.ts');
const {sum} = require('../covered.ts');
expect(sum(1, 2)).toBe(3);
});
4 changes: 2 additions & 2 deletions e2e/typescript-coverage/covered.ts
Expand Up @@ -5,6 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

export = function sum(a: number, b: number): number {
export function sum(a: number, b: number): number {
return a + b;
};
}

0 comments on commit b89a1bb

Please sign in to comment.