diff --git a/pages/API/get-location/get-location.test.js b/pages/API/get-location/get-location.test.js index bd1669f16c55152519c6003d8f87c678b54d622a..6c0d72d2d635414da0fc4c312344852a08971aef 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); } }); @@ -147,7 +146,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); } });