Revert eslint changes and assign test result to variable

Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-06 06:12:38 +00:00
parent 78102886ea
commit ab5e89f10a
5 changed files with 20 additions and 17 deletions

View File

@ -5,11 +5,11 @@ import * as ts from "./_namespaces/ts.js";
// this will work in the browser via browserify
declare global {
// Module transform: converted from ambient declaration
var assert: typeof chai.assert; // eslint-disable-line no-var
var assert: typeof chai.assert;
}
declare global {
// Module transform: converted from ambient declaration
var expect: typeof chai.expect; // eslint-disable-line no-var
var expect: typeof chai.expect;
}
globalThis.assert = chai.assert;
{

View File

@ -39,7 +39,7 @@ const nf = new Intl.NumberFormat("en-US", {
maximumFractionDigits: 0,
});
nf
const filtered = nf
.formatRangeToParts(100, 100)
.filter((part) => part.type !== "approximatelySign")
.map((part) => part.value)
@ -78,7 +78,7 @@ const nf = new Intl.NumberFormat("en-US", {
currency: "EUR",
maximumFractionDigits: 0,
});
nf
const filtered = nf
.formatRangeToParts(100, 100)
.filter((part) => part.type !== "approximatelySign")
.map((part) => part.value)

View File

@ -148,7 +148,8 @@ const nf = new Intl.NumberFormat("en-US", {
});
nf
const filtered = nf
>filtered : Symbol(filtered, Decl(intlNumberFormatES2023.ts, 38, 5))
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map((part) => part.value) .join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))
>nf .formatRangeToParts(100, 100) .filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))

View File

@ -413,7 +413,9 @@ const nf = new Intl.NumberFormat("en-US", {
});
nf
const filtered = nf
>filtered : string
> : ^^^^^^
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map((part) => part.value) .join("") : string
> : ^^^^^^
>nf .formatRangeToParts(100, 100) .filter((part) => part.type !== "approximatelySign") .map((part) => part.value) .join : (separator?: string) => string

View File

@ -33,15 +33,15 @@ new Intl.NumberFormat('en-GB').format('Infinity');
new Intl.NumberFormat('en-GB').format('-Infinity');
new Intl.NumberFormat('en-GB').format('+Infinity');
// Test approximatelySign part type
const nf = new Intl.NumberFormat("en-US", {
style: "currency",
currency: "EUR",
maximumFractionDigits: 0,
});
nf
.formatRangeToParts(100, 100)
.filter((part) => part.type !== "approximatelySign")
.map((part) => part.value)
// Test approximatelySign part type
const nf = new Intl.NumberFormat("en-US", {
style: "currency",
currency: "EUR",
maximumFractionDigits: 0,
});
const filtered = nf
.formatRangeToParts(100, 100)
.filter((part) => part.type !== "approximatelySign")
.map((part) => part.value)
.join("");