提交 3bfc0a14 编写于 作者: 杜庆泉's avatar 杜庆泉

JSON.parse ignore 测试增加条件编译

上级 e6df25e6
......@@ -192,11 +192,13 @@ export function testJSON() : Result {
expect(obj4?.getJSON('data[2][1]')).toEqual({ "b": "test" })
expect(obj4?.getArray('data[3]')).toEqual([1, 2, 3])
// #ifdef APP-ANDROID
let cc1 = JSON.parse<boolean>("12",true)
expect(cc1).toEqual(null)
let cc2 = JSON.parse('{"a"2}',true)
expect(cc2).toEqual(null)
// #endif
})
test('parseObject', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册