Skip to content

Commit 9771c42

Browse files
Update Eve test file
1 parent 2d52642 commit 9771c42

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/SmartThings/matter-switch/src/test/test_eve_energy.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ local function test_init()
7777
end
7878
test.socket.matter:__expect_send({ mock_device.id, subscribe_request })
7979
test.mock_device.add_test_device(mock_device)
80+
test.socket.device_lifecycle:__queue_receive({ mock_device.id, "doConfigure" })
81+
mock_device:expect_metadata_update({ provisioning_state = "PROVISIONED" })
8082
end
8183
test.set_test_init_function(test_init)
8284

@@ -406,4 +408,13 @@ test.register_coroutine_test(
406408
}
407409
)
408410

411+
test.register_coroutine_test(
412+
"Test driver switched event",
413+
function()
414+
-- a driverSwitched event in this case would only have an effect for a
415+
-- parent-child device and therefore nothing should happen for an Eve Energy.
416+
test.socket.device_lifecycle:__queue_receive({ mock_device.id, "driverSwitched" })
417+
end
418+
)
419+
409420
test.run_registered_tests()

0 commit comments

Comments
 (0)