From 041d5acd5e68ec481dd7582810e9304dd8fc661c Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma <usharma1998@gmail.com> Date: Wed, 3 Oct 2018 00:51:46 +0530 Subject: [PATCH] Update test to actually check properties --- .../NumberFormat/constructor-locales-arraylike.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/intl402/NumberFormat/constructor-locales-arraylike.js b/test/intl402/NumberFormat/constructor-locales-arraylike.js index 122e14e47e..6ed4a3fd2f 100644 --- a/test/intl402/NumberFormat/constructor-locales-arraylike.js +++ b/test/intl402/NumberFormat/constructor-locales-arraylike.js @@ -11,7 +11,13 @@ description: > const actual = Intl.NumberFormat({ length: 1, 1: 'en-US' -}); -const expected = Intl.NumberFormat(['en-US']); +}).resolvedOptions(); +const expected = Intl.NumberFormat(['en-US']).resolvedOptions(); -assert.sameValue(actual.resolvedOptions(), expected.resolvedOptions()); +assert.sameValue(actual.locale, expected.locale); +assert.sameValue(actual.minimumIntegerDigits, expected.minimumIntegerDigits); +assert.sameValue(actual.minimumFractionDigits, expected.minimumFractionDigits); +assert.sameValue(actual.maximumFractionDigits, expected.maximumFractionDigits); +assert.sameValue(actual.numberingSystem, expected.numberingSystem); +assert.sameValue(actual.style, expected.style); +assert.sameValue(actual.useGrouping, expected.useGrouping); -- GitLab