aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-01-24 23:49:37 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-01-24 23:49:37 -0500
commit8392337305e5d5a3bb287ec62f212a8b64df95fb (patch)
tree10f58ff9876fb6a2196311154f26ea094dee79f8
parentdcccb4e4d822b5af3d2c4bea84d2fc8bb8a0bd65 (diff)
Unit tests for lights.go file.
-rw-r--r--bridge_test.go3
-rw-r--r--lights_test.go10
2 files changed, 10 insertions, 3 deletions
diff --git a/bridge_test.go b/bridge_test.go
index 99a169f..546470c 100644
--- a/bridge_test.go
+++ b/bridge_test.go
@@ -1,6 +1,5 @@
package hue
-// "go test"
import (
"log"
"testing"
@@ -9,6 +8,4 @@ import (
func TestNewBridge(t *testing.T) {
bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
log.Println(bridge)
-
- GetAllLights(bridge)
} \ No newline at end of file
diff --git a/lights_test.go b/lights_test.go
new file mode 100644
index 0000000..66f01c1
--- /dev/null
+++ b/lights_test.go
@@ -0,0 +1,10 @@
+package hue
+
+import (
+ "testing"
+)
+
+func TestGetAllLights(t *testing.T) {
+ bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
+ GetAllLights(bridge)
+} \ No newline at end of file