diff --git a/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js b/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js index ca67e7ff401dcbc5dbe3e42718c8a39bfd1dcd44..f248d3eaa69bf27a02b9aef72e8073c7e5768c2a 100755 --- a/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js +++ b/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js @@ -1062,7 +1062,7 @@ describe('intlTest', function () { * @tc.desc check the number with unitUsage */ it('formatNumber_test_2250', 0, function () { - let numfmt = new intl.NumberFormat('zh-CN', { style: 'unit', unit: 'meter', + let numfmt = new Intl.NumberFormat('zh-CN', { style: 'unit', unit: 'meter', unitDisplay: 'long', unitUsage: 'length-road' }); console.log('formatNumber_test_2250 ' + numfmt.format(123456.789)); expect(numfmt.format(123456.789)).assertEqual('123,456.789米');