diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-01-28 00:23:10 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-01-28 00:23:10 -0500 |
commit | 7afac327af365967b53051f7d26351e60334373e (patch) | |
tree | ebff91546163f621b91827a8c15c80be83943484 /lights_test.go | |
parent | d48fc670d850562771011973a4094a5e1886c079 (diff) |
Refactored GetAllLights to work well with GetLight
Diffstat (limited to 'lights_test.go')
-rw-r--r-- | lights_test.go | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lights_test.go b/lights_test.go index 66f01c1..ac73d2e 100644 --- a/lights_test.go +++ b/lights_test.go @@ -2,9 +2,19 @@ package hue import ( "testing" + "log" ) - + 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") + light , err := GetLight(bridge, "Bathroom Light") + if err != nil { + trace("", err) + } + log.Println("LIGHT: ", light) +} |