mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-18 12:35:31 -04:00
!682 新增api-mock
Merge pull request !682 from 耿文广/cherry-pick-1663289957
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user