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

!3737 【xts_acts】【monthly】修复nowCurrent取值报错问题

Merge pull request !3737 from 郭永强/monthly_20220614
......@@ -288,7 +288,7 @@ describe('appInfoTest', function () {
it('nowCurrent_test', 0, function () {
let nowCurrent = batteryInfo.nowCurrent;
console.info('nowCurrent = ' + nowCurrent);
expect(nowCurrent >= 0).assertTrue();
expect((nowCurrent >= -20000 && nowCurrent <= 20000)).assertTrue();
})
/**
......@@ -401,4 +401,6 @@ 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.
先完成此消息的编辑!
想要评论请 注册