diff --git a/powermgr/battery_manager/src/main/js/default/test/battery_unit.test.js b/powermgr/battery_manager/src/main/js/default/test/battery_unit.test.js index 3f1df6e0f13809a91c47d592382f00a8eb3e7593..4212973242dd52bedac5edffc86ab53a440df961 100644 --- a/powermgr/battery_manager/src/main/js/default/test/battery_unit.test.js +++ b/powermgr/battery_manager/src/main/js/default/test/battery_unit.test.js @@ -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(); }) /**