diff --git a/runtime/main/extend/systemplugin/geolocation.js b/runtime/main/extend/systemplugin/geolocation.js index 1e334902..f18df123 100644 --- a/runtime/main/extend/systemplugin/geolocation.js +++ b/runtime/main/extend/systemplugin/geolocation.js @@ -1,4 +1,4 @@ -import { hasComplete } from "./utils" +import {hasComplete, getRandomArbitrary} from "./utils" export function mockGeolocation() { const data = { diff --git a/runtime/main/extend/systemplugin/systemPackage.js b/runtime/main/extend/systemplugin/systemPackage.js index 77e92d07..275bbd09 100644 --- a/runtime/main/extend/systemplugin/systemPackage.js +++ b/runtime/main/extend/systemplugin/systemPackage.js @@ -6,7 +6,7 @@ export function mockSystemPackage() { console.warn("package.hasInstalled interface mocked in the Previewer. How this interface works on the" + " Previewer may be different from that on a real device.") args[0].success(true) - isComplete(args[0].complete) + hasComplete(args[0].complete) } } } \ No newline at end of file