mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-23 02:45:21 -04:00
f80b54986b
Signed-off-by: seaside_wu <wuhaibin5@huawei.com> Change-Id: I325a598e7ba5a9e99dbd8e97f20347bb0753b046
12 lines
432 B
JavaScript
12 lines
432 B
JavaScript
import { hasComplete } from "./utils"
|
|
|
|
export function mockSystemPackage() {
|
|
global.systemplugin.package = {
|
|
hasInstalled: function (...args) {
|
|
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)
|
|
hasComplete(args[0].complete)
|
|
}
|
|
}
|
|
} |