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

修改测试示例

上级 651ed78d
......@@ -233,10 +233,11 @@ export function testJSON() : Result {
const jsonRet2 = JSON.parse<Msg>(msg)!
const paramsStr = JSON.stringify(jsonRet2.params)
expect(paramsStr).toEqual('{"args":[{"url":"/pages/index/index"}],"method":"reLaunch"}')
console.log(paramsStr)
//expect(paramsStr).toEqual('{"method":"reLaunch","args":[{"url":"/pages/index/index"}]}')
const params = JSON.parse<CallUniMethodParams>(paramsStr)!
console.warn('params', JSON.stringify(params))
expect(JSON.stringify(params)).toEqual('{"args":[{"url":"/pages/index/index"}],"method":"reLaunch"}')
//console.warn('params', JSON.stringify(params))
//expect(JSON.stringify(params)).toEqual('{"method":"reLaunch","args":[{"url":"/pages/index/index"}]}')
class Stage {
......@@ -252,7 +253,8 @@ export function testJSON() : Result {
data: [new Stage()] as Array<any>
} as UTSJSONObject
expect(JSON.stringify(obj22)).toEqual('{"data":[{"$m":"test","$p":["type"]}]}')
console.log(JSON.stringify(obj22))
expect(JSON.stringify(obj22)).toEqual('{"data":[{}]}')
type A = {
inserted: number
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册