Skip to content

Commit a18afd9

Browse files
committed
Imports in tests refactoring
1 parent 943518e commit a18afd9

18 files changed

+79
-79
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import $date from '@core-js/pure/full/date/index';
2-
new $date();
1+
import $Date from '@core-js/pure/full/date/index';
2+
new $Date();
33

4-
import $date2 from '@core-js/pure/full/date/index.js';
5-
new $date2();
4+
import $Date2 from '@core-js/pure/full/date/index.js';
5+
new $Date2();
66

7-
import $date3 from '@core-js/pure/full/date';
8-
new $date3();
7+
import $Date3 from '@core-js/pure/full/date';
8+
new $Date3();

tests/type-definitions/global/web/efficient-script-yielding.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'core-js/full';
22

3-
const res: number | object = setImmediate(() => 42);
3+
const res: number | object | undefined = setImmediate(() => 42);
44
clearImmediate(res);
55

66
// @ts-expect-error
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import $date from '@core-js/pure/full/date/index';
1+
import $Date from '@core-js/pure/full/date/index';
22

3-
new $date();
4-
new $date('2020-01-01');
3+
new $Date();
4+
new $Date('2020-01-01');
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import $parseFloat from '@core-js/pure/full/parse-float';
1+
import parseFloat from '@core-js/pure/full/parse-float';
22

3-
const res: number = $parseFloat('123.45');
3+
const res: number = parseFloat('123.45');
44

55
// @ts-expect-error
6-
$parseFloat(123);
6+
parseFloat(123);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import $parseInt from '@core-js/pure/full/parse-int';
1+
import parseInt from '@core-js/pure/full/parse-int';
22

3-
const res: number = $parseInt('123');
3+
const res: number = parseInt('123');
44

55
// @ts-expect-error
6-
$parseInt(123);
6+
parseInt(123);
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import $symbol from '@core-js/pure/full/symbol/index';
1+
import $Symbol from '@core-js/pure/full/symbol/index';
22

3-
const sym: symbol = $symbol.asyncIterator;
3+
const sym: symbol = $Symbol.asyncIterator;
44

55
// @ts-expect-error
6-
const bad1: string = $symbol.asyncIterator;
6+
const bad1: string = $Symbol.asyncIterator;
77
// @ts-expect-error
8-
$symbol['asyncIterator'] = $symbol("other");
8+
$Symbol['asyncIterator'] = $Symbol("other");
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import symbolCustomMatcher from '@core-js/pure/full/symbol/custom-matcher';
2-
import $symbol from '@core-js/pure/full/symbol/index';
2+
import $Symbol from '@core-js/pure/full/symbol/index';
33

44
const rscs1: symbol = symbolCustomMatcher;
55
const rscs2: typeof symbolCustomMatcher = symbolCustomMatcher;
66

77
// @ts-expect-error
8-
$symbol['customMatcher'] = $symbol("other");
8+
$Symbol['customMatcher'] = $Symbol("other");
99
// @ts-expect-error
1010
const n: number = symbolCustomMatcher;
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import $join from '@core-js/pure/full/iterator/join';
1+
import iteratorJoin from '@core-js/pure/full/iterator/join';
22

33
declare const it: Iterator<number>;
44

5-
const res1: string = $join(it, );
6-
const res2: string = $join(it, ' ');
7-
const res3: string = $join(it, 5);
8-
const res4: string = $join(it, Symbol('x'));
9-
const res5: string = $join(it, undefined);
10-
const res6: string = $join(it, null);
5+
const res1: string = iteratorJoin(it, );
6+
const res2: string = iteratorJoin(it, ' ');
7+
const res3: string = iteratorJoin(it, 5);
8+
const res4: string = iteratorJoin(it, Symbol('x'));
9+
const res5: string = iteratorJoin(it, undefined);
10+
const res6: string = iteratorJoin(it, null);
1111

1212
// @ts-expect-error
13-
$join(it, '+', '_');
13+
iteratorJoin(it, '+', '_');
1414
// @ts-expect-error
15-
const res7: number = $join(it, );
15+
const res7: number = iteratorJoin(it, );
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import $symbol from '@core-js/pure/full/symbol/index';
1+
import $Symbol from '@core-js/pure/full/symbol/index';
22

3-
const sym: symbol = $symbol.customMatcher;
3+
const sym: symbol = $Symbol.customMatcher;
44

55
// @ts-expect-error
6-
const bad1: string = $symbol.customMatcher;
6+
const bad1: string = $Symbol.customMatcher;
77
// @ts-expect-error
8-
$symbol['customMatcher'] = $symbol("other");
8+
$Symbol['customMatcher'] = $Symbol("other");
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import $atob from '@core-js/pure/full/atob';
1+
import atob from '@core-js/pure/full/atob';
22

3-
const s: string = $atob("SGVsbG8gd29ybGQ=");
3+
const s: string = atob("SGVsbG8gd29ybGQ=");
44

55
// @ts-expect-error
6-
$atob();
6+
atob();
77
// @ts-expect-error
8-
$atob(123);
8+
atob(123);
99
// @ts-expect-error
10-
$atob({});
10+
atob({});

0 commit comments

Comments
 (0)