diff --git a/pages/API/get-location/get-location.test.js b/pages/API/get-location/get-location.test.js index c75d37dd3ca368e1337845ab81cbfc3f859534d6..fba2e165917a9ec9708d46616dc99280c8f2fc3a 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); } });