提交 61e273cc 编写于 作者: 雪洛's avatar 雪洛

test: 屏蔽由于safari 15不支持的测试例

上级 2ae83173
...@@ -100,7 +100,10 @@ export function testDate() : Result { ...@@ -100,7 +100,10 @@ export function testDate() : Result {
// subsequent millisecond (month boundary) // subsequent millisecond (month boundary)
expect(new Date(2016, 1, 29, 23, 59, 59, 1000).getDate()).toEqual(1); expect(new Date(2016, 1, 29, 23, 59, 59, 1000).getDate()).toEqual(1);
// #ifndef WEB
// safari 15不支持此格式的日期字符串
expect(Date.parse("2024-01-09 22:00:00")).toEqual(1704808800000); expect(Date.parse("2024-01-09 22:00:00")).toEqual(1704808800000);
// #endif
}) })
test('getDay', () => { test('getDay', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册