提交 acc8c639 编写于 作者: G greada

power test code optimization

Signed-off-by: Ngreada <kangqiao1@huawei.com>
上级 cd8580dc
......@@ -18,7 +18,7 @@ import { describe, it, expect } from '@ohos/hypium'
const MSEC_1000 = 1000;
export default function ThermalUnitTest() {
describe('ThermalUnitTest', function () {
describe('ThermalUnitTest', function () {
console.log("*************Thermal API Test Begin*************");
/* @tc.number SUB_PowerSystem_ThermalManager_JSTest_0010
......@@ -202,19 +202,19 @@ describe('ThermalUnitTest', function () {
try {
thermal.unregisterThermalLevelCallback()
} catch (error) {
console.info('Thermal_020:' + error);
console.info('UnRegister_Thermal_Level_Callback_JSTest0140:' + error);
expect().assertFail();
}
try {
thermal.unregisterThermalLevelCallback(() => {
expect(ture).assertTrue();
expect(true).assertTrue();
})
} catch (error) {
console.info('Thermal_020:' + error);
console.info('UnRegister_Thermal_Level_Callback_JSTest0140:' + error);
expect().assertFail();
}
done();
})
})
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册