From 3884a234c75cfb83259f630a1f846aaaa507ede9 Mon Sep 17 00:00:00 2001 From: zhaofengliang Date: Mon, 12 Aug 2024 20:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=9A=E4=BD=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E8=84=9A=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-location/get-location.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/API/get-location/get-location.test.js b/pages/API/get-location/get-location.test.js index fba2e165..6c0d72d2 100644 --- a/pages/API/get-location/get-location.test.js +++ b/pages/API/get-location/get-location.test.js @@ -110,8 +110,9 @@ describe("get-location", () => { await page.waitFor(async () => { return await page.data('jest_complete') === true; }); - - expect((await page.data())['jest_errCode']).toEqual(1505601); + if (isApp) { + expect((await page.data())['jest_errCode']).toEqual(1505601); + } }); -- GitLab