From 92847147ff85f56db5c555abd8db88ac3419f04a Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 16 Dec 2024 16:52:24 +0800 Subject: [PATCH] =?UTF-8?q?test(storage):=20saveUTSJSONObjectArray=20?= =?UTF-8?q?=E8=A7=84=E9=81=BF=20ios=20=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/storage/storage.test.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pages/API/storage/storage.test.js b/pages/API/storage/storage.test.js index c6b0d47a..aabea944 100644 --- a/pages/API/storage/storage.test.js +++ b/pages/API/storage/storage.test.js @@ -311,13 +311,16 @@ describe('ExtApi-StorageInfoTest', () => { expect(jest_saveUTSJSONObjectAsyncResult).toBe(1) }) - it('saveUTSJSONObjectArray', async () => { - await page.callMethod('jest_saveUTSJSONObjectArray') - await page.waitFor(600) - const { - jest_saveUTSJSONObjectArraySyncResult - } = await page.data() - expect(jest_saveUTSJSONObjectArraySyncResult).toBe(1) - }) + // ios js 层与原生层通信时,原始数据类型丢失 + if (!isIOS) { + it('saveUTSJSONObjectArray', async () => { + await page.callMethod('jest_saveUTSJSONObjectArray') + await page.waitFor(600) + const { + jest_saveUTSJSONObjectArraySyncResult + } = await page.data() + expect(jest_saveUTSJSONObjectArraySyncResult).toBe(1) + }) + } }); -- GitLab