mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-23 06:40:59 +00:00
commit
b9f26cfaea
@ -527,6 +527,18 @@ export function mockHuks() {
|
||||
})
|
||||
}
|
||||
},
|
||||
attestKey: function (...args) {
|
||||
console.warn("huks.attestKey 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, HuksResult)
|
||||
} else {
|
||||
return new Promise((resolve, reject) => {
|
||||
resolve(HuksResult)
|
||||
})
|
||||
}
|
||||
},
|
||||
getSdkVersion: function (...args) {
|
||||
console.warn("huks.getSdkVersion interface mocked in the Previewer. How this interface works on the Previewer" +
|
||||
" may be different from that on a real device.")
|
||||
|
Loading…
Reference in New Issue
Block a user