aboutsummaryrefslogtreecommitdiff
path: root/bridge_test.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-01-24 23:47:17 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-01-24 23:47:17 -0500
commitdcccb4e4d822b5af3d2c4bea84d2fc8bb8a0bd65 (patch)
treecb275088bf368c0d2910c97d34872e197ccb07a9 /bridge_test.go
parent3d0ad2f5e81c734bc0ca6364d2ea7c966ef5dbb9 (diff)
Unit tests for bridge.go file.
Diffstat (limited to 'bridge_test.go')
-rw-r--r--bridge_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/bridge_test.go b/bridge_test.go
new file mode 100644
index 0000000..99a169f
--- /dev/null
+++ b/bridge_test.go
@@ -0,0 +1,14 @@
+package hue
+
+// "go test"
+import (
+ "log"
+ "testing"
+)
+
+func TestNewBridge(t *testing.T) {
+ bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
+ log.Println(bridge)
+
+ GetAllLights(bridge)
+} \ No newline at end of file