Skip to content

Commit

Permalink
Test(cleanup): Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Jun 14, 2016
1 parent cb7c7d9 commit 02a3337
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ dotest.add ('providers params', function (test) {
};

europeana ('providers', params, function (err, data) {
var items = data && data.items;

test (err)
.isObject ('fail', 'data', data)
.isNotEmpty ('warn', 'data', data)
.isArray ('warn', 'data.items', data && data.items)
.isExactly ('warn', 'data.items.length', data && data.items && data.items.length, 3)
.isArray ('warn', 'data.items', items)
.isExactly ('warn', 'data.items.length', items && items.length, 3)
.done ();
});
});
Expand Down

0 comments on commit 02a3337

Please sign in to comment.