提交 fe4e7ca2 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整部分测试例

上级 30685371
...@@ -85,13 +85,14 @@ export function testJSON() : Result { ...@@ -85,13 +85,14 @@ export function testJSON() : Result {
return describe("JSON", () => { return describe("JSON", () => {
test('custom-stringify', () => { test('custom-stringify', () => {
// #ifdef APP-ANDROID
expect(JSON.stringify(new A1())!.length).toEqual(28) expect(JSON.stringify(new A1())!.length).toEqual(28)
expect(JSON.stringify(new A2())).toEqual("2") expect(JSON.stringify(new A2())).toEqual("2")
expect(JSON.stringify(new A3())).toEqual('"json"') expect(JSON.stringify(new A3())).toEqual('"json"')
expect(JSON.stringify(new A4())).toEqual('null') expect(JSON.stringify(new A4())).toEqual('null')
expect(JSON.stringify(new A5())!.length).toEqual(28) expect(JSON.stringify(new A5())!.length).toEqual(28)
expect(JSON.stringify(new A6())!.length).toEqual(28) expect(JSON.stringify(new A6())!.length).toEqual(28)
// #endif
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册