Skip to content

Commit

Permalink
Test(script): Added search by subdossier test
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Aug 12, 2016
1 parent a7fc7a8 commit 21d2fed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,17 @@ dotest.add ('search by dossier', function () {
});


dotest.add ('search by subdossier', function (test) {
openkvk ('58488340/0000', function (err, data) {
test (err)
.isObject ('fail', 'data', data)
.isNotEmpty ('fail', 'data', data)
.isExactly ('warn', 'data.dossiernummer', data && data.dossiernummer, '58488340')
.isExactly ('warn', 'data.subdossiernummer', data && data.subdossiernummer, '0000')
.done ();
});
});


// Start the tests
dotest.run ();

0 comments on commit 21d2fed

Please sign in to comment.