• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import { paramMock } from "./utils"
2
3export function mockNfcCardEmulation() {
4  global.systemplugin.nfc = {}
5  global.systemplugin.nfc.cardEmulation = {
6    isSupported: function (...args) {
7      console.warn("nfc.cardEmulation.isSupported interface mocked in the Previewer. How this interface works on the" +
8        " Previewer may be different from that on a real device.")
9      return paramMock.paramBooleanMock;
10    }
11  }
12}
13