Skip to content

Commit ab5e89f

Browse files
Copilotjakebailey
andcommitted
Revert eslint changes and assign test result to variable
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
1 parent 7810288 commit ab5e89f

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

src/harness/harnessGlobals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import * as ts from "./_namespaces/ts.js";
55
// this will work in the browser via browserify
66
declare global {
77
// Module transform: converted from ambient declaration
8-
var assert: typeof chai.assert; // eslint-disable-line no-var
8+
var assert: typeof chai.assert;
99
}
1010
declare global {
1111
// Module transform: converted from ambient declaration
12-
var expect: typeof chai.expect; // eslint-disable-line no-var
12+
var expect: typeof chai.expect;
1313
}
1414
globalThis.assert = chai.assert;
1515
{

tests/baselines/reference/intlNumberFormatES2023.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const nf = new Intl.NumberFormat("en-US", {
3939
maximumFractionDigits: 0,
4040
});
4141

42-
nf
42+
const filtered = nf
4343
.formatRangeToParts(100, 100)
4444
.filter((part) => part.type !== "approximatelySign")
4545
.map((part) => part.value)
@@ -78,7 +78,7 @@ const nf = new Intl.NumberFormat("en-US", {
7878
currency: "EUR",
7979
maximumFractionDigits: 0,
8080
});
81-
nf
81+
const filtered = nf
8282
.formatRangeToParts(100, 100)
8383
.filter((part) => part.type !== "approximatelySign")
8484
.map((part) => part.value)

tests/baselines/reference/intlNumberFormatES2023.symbols

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ const nf = new Intl.NumberFormat("en-US", {
148148

149149
});
150150

151-
nf
151+
const filtered = nf
152+
>filtered : Symbol(filtered, Decl(intlNumberFormatES2023.ts, 38, 5))
152153
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map((part) => part.value) .join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
153154
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))
154155
>nf .formatRangeToParts(100, 100) .filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))

tests/baselines/reference/intlNumberFormatES2023.types

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ const nf = new Intl.NumberFormat("en-US", {
413413

414414
});
415415

416-
nf
416+
const filtered = nf
417+
>filtered : string
418+
> : ^^^^^^
417419
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map((part) => part.value) .join("") : string
418420
> : ^^^^^^
419421
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map((part) => part.value) .join : (separator?: string) => string

tests/cases/conformance/es2023/intlNumberFormatES2023.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ new Intl.NumberFormat('en-GB').format('Infinity');
3333
new Intl.NumberFormat('en-GB').format('-Infinity');
3434
new Intl.NumberFormat('en-GB').format('+Infinity');
3535

36-
// Test approximatelySign part type
37-
const nf = new Intl.NumberFormat("en-US", {
38-
style: "currency",
39-
currency: "EUR",
40-
maximumFractionDigits: 0,
41-
});
42-
43-
nf
44-
.formatRangeToParts(100, 100)
45-
.filter((part) => part.type !== "approximatelySign")
46-
.map((part) => part.value)
36+
// Test approximatelySign part type
37+
const nf = new Intl.NumberFormat("en-US", {
38+
style: "currency",
39+
currency: "EUR",
40+
maximumFractionDigits: 0,
41+
});
42+
43+
const filtered = nf
44+
.formatRangeToParts(100, 100)
45+
.filter((part) => part.type !== "approximatelySign")
46+
.map((part) => part.value)
4747
.join("");

0 commit comments

Comments
 (0)