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

增加 UTSJSONObject 包含函数的测试示例

上级 3715ae94
...@@ -280,16 +280,18 @@ export function testJSON() : Result { ...@@ -280,16 +280,18 @@ export function testJSON() : Result {
}) })
test('UTSJSONOject', () => { test('UTSJSONOject', () => {
//var t1 = "1" let t1 = "1"
//const a = { const a = {
// test(){ test(){
// t1 = "2" t1 = "2"
// console.log("test") console.log("test")
// } }
//} };
//(a['test'] as ()=>void)() //console.log(a['test']);
//console.log(a['test']) (a['test'] as ()=>void)()
//expect(t1).toEqual("2") //console.log(t1);
expect(t1).toEqual("2")
//console.log(JSON.stringify(a));
}) })
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册