From 1161eee3e44ae486d5674356cadc3e53edce1519 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang <41213225+FrankYFTang@users.noreply.github.com> Date: Thu, 9 Jul 2020 18:00:40 -0700 Subject: [PATCH] use undefined instead of 0 --- .../prototype/formatRange/fractionalSecondDigits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/intl402/DateTimeFormat/prototype/formatRange/fractionalSecondDigits.js b/test/intl402/DateTimeFormat/prototype/formatRange/fractionalSecondDigits.js index 5efb0a40b7..2f0cb0f187 100644 --- a/test/intl402/DateTimeFormat/prototype/formatRange/fractionalSecondDigits.js +++ b/test/intl402/DateTimeFormat/prototype/formatRange/fractionalSecondDigits.js @@ -13,7 +13,7 @@ const d2 = new Date(2019, 7, 10, 1, 2, 3, 567); const d3 = new Date(2019, 7, 10, 1, 2, 13, 987); let dtf = new Intl.DateTimeFormat( - 'en', { minute: "numeric", second: "numeric", fractionalSecondDigits: 0}); + 'en', { minute: "numeric", second: "numeric", fractionalSecondDigits: undefined}); assert.sameValue(dtf.formatRange(d1, d2), "02:03", "no fractionalSecondDigits"); assert.sameValue(dtf.formatRange(d1, d3), "02:03 – 02:13", "no fractionalSecondDigits");