diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-12 17:55:23 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-12 17:55:23 -0500 |
commit | cc2f863c334691d4125563e0ee87bc191c190ed3 (patch) | |
tree | 3003afc16bb6571d5e47d4ffd45f180807beb7b7 /light_test.go | |
parent | 0a8accca16c3231095be9d80e5496d039960ba62 (diff) |
Renamed GetLight to GetLightByName and added unit tests.
Diffstat (limited to 'light_test.go')
-rw-r--r-- | light_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/light_test.go b/light_test.go index 9073a06..da51dce 100644 --- a/light_test.go +++ b/light_test.go @@ -18,9 +18,9 @@ func TestGetAllLights(t *testing.T) { GetAllLights(bridge) } -func TestGetLight(t *testing.T) { +func TestGetLightByName(t *testing.T) { bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207") - GetLight(bridge, "Bathroom Light") + GetLightByName(bridge, "Bathroom Light") } func TestSetLightState(t *testing.T) { |