Skip to content

Commit

Permalink
Add simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swhite24 committed Jan 13, 2015
1 parent 2ee95b2 commit 5ddbe37
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/hover-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* hover-test.js
*
* (C) Steven White 2015
*/

var should = require('should'),
hover = require('./..'),
h = null;

describe('on require', function () {
it('should provide a function', function () {
should.exist(hover);
hover.should.be.type('function');
});
});

describe('on invoke', function () {
it('should provide an object', function () {
h = hover('username', 'password');
should.exist(h);
h.should.be.type('object');
});

['getAllDomains', 'getAllDns', 'getDomain', 'getDomainDns', 'createARecord',
'createMXRecord', 'updateDomainDns', 'removeDns'].forEach(function (method) {
it('should expose ' + method, function () {
should.exist(h[method]);
h[method].should.be.type('function');
});
});
});

0 comments on commit 5ddbe37

Please sign in to comment.