Signed-off-by: LVB8189 <lvbai1@huawei.com>

Changes to be committed:
This commit is contained in:
LVB8189 2022-09-30 17:02:06 +08:00
parent 03911cbd3d
commit c8241a0391

View File

@ -68,10 +68,10 @@ export function mockScreenLock() {
" 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)
args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock)
} else {
return new Promise((resolve) => {
resolve();
resolve(paramMock.paramBooleanMock);
})
}
},