diff --git a/location/geolocation_standard/src/main/js/test/LocationMTest.test.js b/location/geolocation_standard/src/main/js/test/LocationMTest.test.js index e7bc3bf81ee01203a79d788de94373bd525000a2..a382ffbd3bd8d423eddb9372c6d4c64c5b2d92b3 100644 --- a/location/geolocation_standard/src/main/js/test/LocationMTest.test.js +++ b/location/geolocation_standard/src/main/js/test/LocationMTest.test.js @@ -484,7 +484,7 @@ export default function geolocationTest_geo7() { }) } catch (error) { console.info("[lbs_js] getCurrentLocation252 promise try err." + JSON.stringify(error)); - expect(true).assertFalse(); + expect(error.code).assertEqual("401"); } await sleep(1000); done(); @@ -560,7 +560,7 @@ export default function geolocationTest_geo7() { }) } catch (error) { console.info("[lbs_js] getCurrentLocation272 promise try err." + JSON.stringify(error)); - expect(true).assertFalse(); + expect(error.code).assertEqual("401"); } await sleep(1000); done(); @@ -1135,7 +1135,7 @@ export default function geolocationTest_geo7() { geolocationm.on('locationChange', requestInfo2, locationChange2); } catch (error) { console.info("[lbs_js] locationChangerOn292 try err." + JSON.stringify(error)); - expect(true).assertFalse(); + expect(error.code).assertEqual("401"); } try { geolocationm.off('locationChange', locationChange2);