Merge pull request #2167 from FrankYFTang/patch-1

change the removed unit 'generic' to 'gigabit'
This commit is contained in:
Leo Balter 2019-05-16 10:05:30 -04:00 committed by GitHub
commit 7d4c264cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const validOptions = [
];
for (const [validOption, expected] of validOptions) {
const nf = new Intl.NumberFormat([], {"style": validOption, "unit": "generic"});
const nf = new Intl.NumberFormat([], {"style": validOption, "unit": "gigabit"});
const resolvedOptions = nf.resolvedOptions();
assert.sameValue(resolvedOptions.style, expected);
}