未验证 提交 15c92387 编写于 作者: O openharmony_ci 提交者: Gitee

!1569 modify testcases on 20220114

Merge pull request !1569 from 杨清/1228
...@@ -1062,7 +1062,7 @@ describe('intlTest', function () { ...@@ -1062,7 +1062,7 @@ describe('intlTest', function () {
* @tc.desc check the number with unitUsage * @tc.desc check the number with unitUsage
*/ */
it('formatNumber_test_2250', 0, function () { 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' }); unitDisplay: 'long', unitUsage: 'length-road' });
console.log('formatNumber_test_2250 ' + numfmt.format(123456.789)); console.log('formatNumber_test_2250 ' + numfmt.format(123456.789));
expect(numfmt.format(123456.789)).assertEqual('123,456.789米'); expect(numfmt.format(123456.789)).assertEqual('123,456.789米');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册