change to camelCase to sync with #54 (#2240)

to sync with https://github.com/tc39/proposal-unified-intl-numberformat/pull/54
@sffc @leobalter
This commit is contained in:
Frank Yung-Fong Tang 2019-07-16 16:00:29 -07:00 committed by Leo Balter
parent d02fe7db38
commit dce0910981
1 changed files with 4 additions and 4 deletions

View File

@ -3,11 +3,11 @@
/*---
esid: sec-setnumberformatunitoptions
description: Checks handling of valid values for the numeric option to the RelativeTimeFormat constructor.
description: Checks handling of valid values for the numeric option to the NumberFormat constructor.
info: |
SetNumberFormatUnitOptions ( intlObj, options )
6. Let currencyDisplay be ? GetOption(options, "currencyDisplay", "string", « "code", "symbol", "narrow-symbol", "name" », "symbol").
6. Let currencyDisplay be ? GetOption(options, "currencyDisplay", "string", « "code", "symbol", "narrowSymbol", "name" », "symbol").
11. If style is "currency", then
f. Set intlObj.[[CurrencyDisplay]] to currencyDisplay.
@ -16,8 +16,8 @@ features: [Intl.NumberFormat-unified]
const validOptions = [
[undefined, "symbol"],
["narrow-symbol", "narrow-symbol"],
[{ toString() { return "narrow-symbol"; } }, "narrow-symbol"],
["narrowSymbol", "narrowSymbol"],
[{ toString() { return "narrowSymbol"; } }, "narrowSymbol"],
];
for (const [validOption, expected] of validOptions) {