From 0116aa3c225b01ea41734f096105863eded2abb5 Mon Sep 17 00:00:00 2001 From: liangjunhao Date: Wed, 28 Jun 2023 11:49:02 +0000 Subject: [PATCH] test: add isStandby acts test Signed-off-by: liangjunhao --- .../src/main/js/test/power_manager_power.test.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/powermgr/power_manager/src/main/js/test/power_manager_power.test.js b/powermgr/power_manager/src/main/js/test/power_manager_power.test.js index 1130d41c5..8376f5cd1 100644 --- a/powermgr/power_manager/src/main/js/test/power_manager_power.test.js +++ b/powermgr/power_manager/src/main/js/test/power_manager_power.test.js @@ -186,5 +186,16 @@ describe('PowerManagerPowerTest', function () { console.info('suspend success done'); done(); }) + + /** + * @tc.number SUB_PowerSystem_PowerManager_JSTest_0094 + * @tc.name power_Device_IsStandby_JSTest094 + * @tc.desc Device isStandby interface verification + */ + it('power_Device_IsStandby_JSTest094', 0, function () { + let isStandby = power.isStandby(); + console.info('power_Device_IsStandby_JSTest094 ' + isStandby); + expect(isStandby).assertFalse(); + }) }) } -- GitLab