aboutsummaryrefslogtreecommitdiff
path: root/light_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'light_test.go')
-rw-r--r--light_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/light_test.go b/light_test.go
new file mode 100644
index 0000000..5639630
--- /dev/null
+++ b/light_test.go
@@ -0,0 +1,15 @@
+package hue
+
+import (
+ "testing"
+)
+
+func TestGetAllLights(t *testing.T) {
+ bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
+ GetAllLights(bridge)
+}
+
+func TestGetLight(t *testing.T) {
+ bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
+ GetLight(bridge, "Bathroom Light")
+}