提交 92847147 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(storage): saveUTSJSONObjectArray 规避 ios 平台

上级 722db0d2
...@@ -311,13 +311,16 @@ describe('ExtApi-StorageInfoTest', () => { ...@@ -311,13 +311,16 @@ describe('ExtApi-StorageInfoTest', () => {
expect(jest_saveUTSJSONObjectAsyncResult).toBe(1) expect(jest_saveUTSJSONObjectAsyncResult).toBe(1)
}) })
it('saveUTSJSONObjectArray', async () => { // ios js 层与原生层通信时,原始数据类型丢失
await page.callMethod('jest_saveUTSJSONObjectArray') if (!isIOS) {
await page.waitFor(600) it('saveUTSJSONObjectArray', async () => {
const { await page.callMethod('jest_saveUTSJSONObjectArray')
jest_saveUTSJSONObjectArraySyncResult await page.waitFor(600)
} = await page.data() const {
expect(jest_saveUTSJSONObjectArraySyncResult).toBe(1) jest_saveUTSJSONObjectArraySyncResult
}) } = await page.data()
expect(jest_saveUTSJSONObjectArraySyncResult).toBe(1)
})
}
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册