Fix expectation of "compact" notation

This commit is contained in:
Frank Yung-Fong Tang 2021-11-30 16:10:15 -08:00 committed by Rick Waldron
parent 4b7f8b49cc
commit 54ef0b1bf4
1 changed files with 3 additions and 3 deletions

View File

@ -28,6 +28,6 @@ assert.sameValue(nf.format(100000), '100,000', '"min2"');
nf = new Intl.NumberFormat('en-US', {notation: 'compact'});
assert.sameValue(nf.format(100), '100', 'notation: "compact"');
assert.sameValue(nf.format(1000), '1000', 'notation: "compact"');
assert.sameValue(nf.format(10000), '10,000', 'notation: "compact"');
assert.sameValue(nf.format(100000), '100,000', 'notation: "compact"');
assert.sameValue(nf.format(1000), '1K', 'notation: "compact"');
assert.sameValue(nf.format(10000), '10K', 'notation: "compact"');
assert.sameValue(nf.format(100000), '100K', 'notation: "compact"');