Skip to content

Commit

Permalink
Add HueUPNPResponse null constructor test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohnso5 committed Mar 6, 2017
1 parent dc8acc6 commit 6716c6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hue-interfaces.spec.ts
Expand Up @@ -35,6 +35,10 @@ test('HueUPNPResponse constructor', t => {
const empty = new HueUPNPResponse({thing1: 'narp', thing2: 'pfft'});
t.falsy(empty.id);
t.falsy(empty.internalipaddress);

const nullResponse = new HueUPNPResponse(null);
t.is(undefined, nullResponse.id);
t.is(undefined, nullResponse.internalipaddress);
});

test('clampToRange', t => {
Expand Down

0 comments on commit 6716c6a

Please sign in to comment.