提交 605faf45 编写于 作者: 雪洛's avatar 雪洛

fix: 修复类型错误

上级 e515ac76
......@@ -180,7 +180,7 @@ export function testNumber() : Result {
test('isNaN', () => {
expect(isNaN(0)).toEqual(false);
let aj2 = JSON.parse('{"a":1}') as UTSJSONObject;
let aNumber = aj2['a'] as Number
let aNumber = aj2['a'] as number
expect(isNaN(aNumber)).toEqual(false);
expect(Number.isNaN(aNumber)).toEqual(false);
expect(Number.isNaN(11)).toEqual(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册