!195 删除getAllShortcutInfo的mock

Merge pull request !195 from 耿文广/master
This commit is contained in:
openharmony_ci
2022-03-10 08:51:15 +00:00
committed by Gitee
@@ -1218,18 +1218,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)
});
}
},
cleanBundleCacheFiles: function (...args) {
console.warn("bundle.cleanBundleCacheFiles interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")