fix js api mock clerical error

Signed-off-by: seaside_wu <wuhaibin5@huawei.com>
Change-Id: I325a598e7ba5a9e99dbd8e97f20347bb0753b046
This commit is contained in:
seaside_wu
2021-10-25 20:29:41 +08:00
parent 99268b30ec
commit f80b54986b
2 changed files with 2 additions and 2 deletions
@@ -1,4 +1,4 @@
import { hasComplete } from "./utils"
import {hasComplete, getRandomArbitrary} from "./utils"
export function mockGeolocation() {
const data = {
@@ -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)
}
}
}