mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 14:33:33 -04:00
fix js api mock clerical error
Signed-off-by: seaside_wu <wuhaibin5@huawei.com> Change-Id: I325a598e7ba5a9e99dbd8e97f20347bb0753b046
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user