From 887a30d693c03378d8542af01945744220f254ca Mon Sep 17 00:00:00 2001 From: wangjinxin613 <1749574663@qq.com> Date: Mon, 8 Apr 2024 19:10:32 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=B0=83=E6=95=B4=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/basicTest.test.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/index/basicTest.test.js b/pages/index/basicTest.test.js index e1ea24e..1f07535 100644 --- a/pages/index/basicTest.test.js +++ b/pages/index/basicTest.test.js @@ -36,9 +36,11 @@ describes.forEach(d => { }) }) -if (process.env.uniTestPlatformInfo.startsWith('ios')) { - describe('testTypeFromAppJs', async () => { - const res = await page.callMethod('jest_testTypeFromAppJs') - expect(res).toEqual(true) +if (process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios')) { + describe('testTypeFromAppJs', () => { + it("jest_testTypeFromAppJs", async () => { + const res = await page.callMethod('jest_testTypeFromAppJs') + expect(res).toEqual(true) + }) }) } \ No newline at end of file -- GitLab