提交 2b8295ad 编写于 作者: T toutes

fix: Test case failure in discharge state

Signed-off-by: Ntoutes <zhaoruiyuan2@huawei.com>
上级 75e10aee
...@@ -288,7 +288,7 @@ describe('appInfoTest', function () { ...@@ -288,7 +288,7 @@ describe('appInfoTest', function () {
it('nowCurrent_test', 0, function () { it('nowCurrent_test', 0, function () {
let nowCurrent = batteryInfo.nowCurrent; let nowCurrent = batteryInfo.nowCurrent;
console.info('nowCurrent = ' + nowCurrent); console.info('nowCurrent = ' + nowCurrent);
expect(nowCurrent >= 0).assertTrue(); expect(nowCurrent >= -20000 && nowCurrent <= 20000).assertTrue();
}) })
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册