!682 新增api-mock

Merge pull request !682 from 耿文广/cherry-pick-1663289957
This commit is contained in:
openharmony_ci
2022-09-20 03:43:59 +00:00
committed by Gitee
@@ -472,6 +472,16 @@ export function mockBundle() {
})
}
},
getApplicationInfoSync: function(...args) {
console.warn("bundle.getApplicationInfoSync interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
return ApplicationInfo
},
getBundleInfoSync: function(...args) {
console.warn("bundle.getBundleInfoSync interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
return BundleInfo
},
};
return bundle;
}