Skip to content

Commit

Permalink
a few simple unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stan Kirdey authored and Stan Kirdey committed Jan 7, 2018
1 parent fe80fc8 commit 91fc9c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test-commands-verge.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
var client = require('../lib/verge')();

exports.testClientInit = function(test) {
var client = require('../lib/verge');
test.notEqual(client, null, "client shall not be null");
test.done();
};

exports.testClientInvalidFunction = function(test) {
test.throws(client.exec('unknown'), 'No such command "unknown"', "invalid command throws an error");
test.done();
};

0 comments on commit 91fc9c9

Please sign in to comment.