aboutsummaryrefslogtreecommitdiff
path: root/light_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'light_test.go')
-rw-r--r--light_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/light_test.go b/light_test.go
index 6c85eff..20ab4b8 100644
--- a/light_test.go
+++ b/light_test.go
@@ -22,13 +22,13 @@ func TestSetLightState(t *testing.T) {
lights, _ := GetAllLights(bridge)
selectedLight := lights[0]
- selectedLight.TurnOn()
+ selectedLight.On()
time.Sleep(time.Second)
- selectedLight.TurnOff()
- time.Sleep(time.Second)
- selectedLight.TurnOn()
+ selectedLight.Off()
time.Sleep(time.Second)
selectedLight.Toggle()
time.Sleep(time.Second)
- selectedLight.Toggle()
+ selectedLight.ColorLoop()
+
+ selectedLight.SetName("testing")
}