aboutsummaryrefslogtreecommitdiff
path: root/lights_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lights_test.go')
-rw-r--r--lights_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/lights_test.go b/lights_test.go
index 66f01c1..5639630 100644
--- a/lights_test.go
+++ b/lights_test.go
@@ -3,8 +3,13 @@ package hue
import (
"testing"
)
-
+
func TestGetAllLights(t *testing.T) {
bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
GetAllLights(bridge)
-} \ No newline at end of file
+}
+
+func TestGetLight(t *testing.T) {
+ bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
+ GetLight(bridge, "Bathroom Light")
+}