未验证 提交 ec20fbbf 编写于 作者: O openharmony_ci 提交者: Gitee

!3736 【xts_acts】【master】修复nowCurrent取值报错问题

Merge pull request !3736 from 郭永强/master
......@@ -288,7 +288,7 @@ describe('appInfoTest', function () {
it('nowCurrent_test', 0, function () {
let nowCurrent = batteryInfo.nowCurrent;
console.info('nowCurrent = ' + nowCurrent);
expect(nowCurrent >= -20000 && nowCurrent <= 20000).assertTrue();
expect((nowCurrent >= -20000 && nowCurrent <= 20000)).assertTrue();
})
/**
......@@ -401,4 +401,8 @@ describe('appInfoTest', function () {
console.info('remainingChargeTime = ' + remainingChargeTime);
expect(remainingChargeTime >= 0).assertTrue();
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册