Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
Test: check data existance before conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Mar 22, 2015
1 parent fad75ff commit 40e704b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ queue.push (function () {
app ('GET', '/domains/'+ bogus.domain.id, function (err, data) {
doTest (err, 'GET object', [
['type', data && data.domain instanceof Object],
['name', data.domain.name === bogus.domain.name]
['name', data && data.domain.name === bogus.domain.name]
]);
});
});
Expand Down

0 comments on commit 40e704b

Please sign in to comment.