• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import { hasComplete } from "./utils"
2
3export function mockSystemPackage() {
4    global.systemplugin.package = {
5      hasInstalled: function (...args) {
6        console.warn("package.hasInstalled interface mocked in the Previewer. How this interface works on the" +
7          " Previewer may be different from that on a real device.")
8        args[0].success(true)
9        isComplete(args[0].complete)
10      }
11    }
12  }