From d42aaa4b15c0aac400c7c99231a85b067b5906f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 24 Jun 2020 03:18:01 -0700 Subject: [PATCH] Expect `undefined` when no fractional second digits are present Change the expected value per the current PR. --- ...nstructor-options-fractionalSecondDigits-valid.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-valid.js b/test/intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-valid.js index 3f9fa0d3c6..13d803e47c 100644 --- a/test/intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-valid.js +++ b/test/intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-valid.js @@ -13,10 +13,10 @@ features: [Intl.DateTimeFormat-fractionalSecondDigits] const validOptions = [ - [undefined, 0], - [-0, 0], - [0, 0], - ["0", 0], + [undefined, undefined], + [-0, undefined], + [0, undefined], + ["0", undefined], [1, 1], ["1", 1], [2, 2], @@ -25,9 +25,9 @@ const validOptions = [ ["3", 3], [2.9, 2], ["2.9", 2], - [0.00001, 0], + [0.00001, undefined], [{ toString() { return "3"; } }, 3], - [{ valueOf() { return -0; }, toString: undefined }, 0], + [{ valueOf() { return -0; }, toString: undefined }, undefined], ]; for (const [fractionalSecondDigits, expected] of validOptions) { const dtf = new Intl.DateTimeFormat("en", { fractionalSecondDigits });