change the removed unit 'generic' to 'gigabit'

This commit is contained in:
Frank Yung-Fong Tang 2019-05-15 22:14:13 -07:00 committed by GitHub
parent 0c67d0f1b7
commit 9b0d09eb11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}