mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:41:22 -06:00
Revert eslint changes and assign test result to variable
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
parent
78102886ea
commit
ab5e89f10a
@ -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;
|
||||
{
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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, --, --))
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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("");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user