提交 40f2a3a8 编写于 作者: G gwx1147426

powermgr test

Signed-off-by: Ngwx1147426 <guoyongqiang8@huawei.com>
上级 7c92213b
...@@ -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 >= -20000 && nowCurrent <= 20000).assertTrue(); expect((nowCurrent >= -20000 && nowCurrent <= 20000)).assertTrue();
}) })
/** /**
...@@ -401,4 +401,8 @@ describe('appInfoTest', function () { ...@@ -401,4 +401,8 @@ describe('appInfoTest', function () {
console.info('remainingChargeTime = ' + remainingChargeTime); console.info('remainingChargeTime = ' + remainingChargeTime);
expect(remainingChargeTime >= 0).assertTrue(); expect(remainingChargeTime >= 0).assertTrue();
}) })
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册