!251 feat: JS API MOCK支持三方等设备的休眠接口

Merge pull request !251 from qiuxiangdong/mr_pcmode
This commit is contained in:
openharmony_ci
2022-04-19 11:19:36 +00:00
committed by Gitee
@@ -36,6 +36,14 @@ export function mockPower() {
resolve(paramMock.paramBooleanMock);
})
}
},
wakeupDevice: function (...args) {
console.warn("power.wakeupDevice interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
},
suspendDevice: function (...args) {
console.warn("power.suspendDevice interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
}
}
return power