删除mock

Signed-off-by: geng-wenguang <gengwenguang@huawei.com>
This commit is contained in:
geng-wenguang
2022-03-15 17:28:30 +08:00
parent 1c2f030934
commit 10479bb320
@@ -1504,18 +1504,6 @@ const ExtensionAbilityInfoMock = [
});
}
},
getAllShortcutInfo: function (...args) {
console.warn("bundle.getAllShortcutInfo interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
const len = args.length
if (typeof args[len - 1] === 'function') {
args[len - 1].call(this, paramMock.businessErrorMock, ShortcutInfosMock)
} else {
return new Promise((resolve) => {
resolve(ShortcutInfosMock)
});
}
},
getModuleUsageRecords: function (...args) {
console.warn("bundle.getModuleUsageRecords interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")