提交 44dd30e3 编写于 作者: Y y00314596

add by yangqing3@huawei.com

Signed-off-by: Ny00314596 <yangqing3@huawei.com>
上级 e369b55d
......@@ -647,7 +647,7 @@ describe('intlTest', function () {
let datefmt = new Intl.DateTimeFormat('zh-CN', option);
console.log('dateTimeFormat_test_1100 ' + datefmt.resolvedOptions().dateStyle);
expect(datefmt.resolvedOptions().dateStyle).assertEqual('medium');
expect(datefmt.format(date)).assertEqual('2020年12月20日 下午2:23:16');
expect(datefmt.format(date)).assertContain('2020年12月20日');
})
/* *
......@@ -661,7 +661,7 @@ describe('intlTest', function () {
let datefmt = new Intl.DateTimeFormat('zh-CN', option);
console.log('dateTimeFormat_test_1200 ' + datefmt.resolvedOptions().dateStyle);
expect(datefmt.resolvedOptions().dateStyle).assertEqual('short');
expect(datefmt.format(date)).assertEqual('2020/12/20 下午2:23');
expect(datefmt.format(date)).assertContain('2020/12/20');
})
/* *
......@@ -728,7 +728,7 @@ describe('intlTest', function () {
hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short' };
let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
console.log('dateTimeFormat_test_1700 ' + datefmt.format(date));
expect(datefmt.format(date)).assertEqual('公元2020年12月20日星期日 下午2:23:16');
expect(datefmt.format(date)).assertContain('公元2020年12月20日星期日');
})
/* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册