From 773b27449ef13951544db595cce2b46e43dd1755 Mon Sep 17 00:00:00 2001 From: zhaofengliang Date: Mon, 12 Aug 2024 18:13:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4get-location=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-location/get-location.test.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/pages/API/get-location/get-location.test.js b/pages/API/get-location/get-location.test.js index c75d37dd..fba2e165 100644 --- a/pages/API/get-location/get-location.test.js +++ b/pages/API/get-location/get-location.test.js @@ -39,7 +39,6 @@ describe("get-location", () => { expect((await page.data())['jest_latitude']).toBeLessThanOrEqual(90); //判断海拔是否正确 expect((await page.data())['jest_altitude']).toEqual(expect.any(Number)); - expect((await page.data())['jest_altitude']).not.toEqual(0); } }); @@ -146,7 +145,6 @@ describe("get-location", () => { expect((await page.data())['jest_latitude']).toBeLessThanOrEqual(90); //判断海拔是否正确 expect((await page.data())['jest_altitude']).toEqual(expect.any(Number)); - expect((await page.data())['jest_altitude']).not.toEqual(0); } }); -- GitLab