提交 6f2df66d 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整date测试例

上级 2d25f4c9
......@@ -47,6 +47,7 @@ export function testDate() : Result {
})
test('toXString', () => {
// #ifdef APP-ANDROID
const event = new Date('1995-12-17T03:24:00');
// #ifndef APP-ANDROID
expect(event.toString()).toEqual("Sun Dec 17 1995 03:24:00 GMT+0800");
......@@ -62,9 +63,9 @@ export function testDate() : Result {
expect(event2.toTimeString()).toEqual("2014-01-09T14:00:00.000Z");
// #endif
expect(event2.toISOString()).toEqual("2014-01-09T14:00:00.000Z");
expect(event2.toJSON()).toEqual("2014-01-09T14:00:00.000Z");
expect(event2.toDateString()).toEqual("Thu Jan 09 2014");
expect(event2.toJSON()).toEqual("Thu Jan 09 2014");
expect(event2.toDateString()).toEqual("22:00:00 GMT+0800");
// #endif
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册