Skip to content

Commit

Permalink
Test(script): Run tests even when API key is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Aug 16, 2016
1 parent d15c43f commit 27b6ce1
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,10 @@ var ovio = app (config);


// Tests
dotest.add ('API key', function (test) {
if (!config.apikey) {
dotest.log ('OVIO_APIKEY is not set');
dotest.exit ();
} else {
dotest.log ('good', 'OVIO_APIKEY key is set');
test ()
.done ();
}
});


dotest.add ('Module', function (test) {
test ()
.isFunction ('fail', 'exports', app)
.isFunction ('fail', 'module', ovio)
.isFunction ('fail', 'interface', ovio)
.done ();
});

Expand Down

0 comments on commit 27b6ce1

Please sign in to comment.