Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gemedet committed May 22, 2016
1 parent 91a277c commit 7dcd841
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/scripts/hexo/hexo.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ describe('Hexo', function() {
});
});

it('call() - callback without args', function(callback) {
hexo.call('test', function(err, data) {
should.not.exist(err);
data.should.eql({});

callback();
});
});

it('call() - console not registered', function() {
var errorCallback = sinon.spy(function(err) {
err.should.have.property('message', 'Console `nothing` has not been registered yet!');
Expand Down

0 comments on commit 7dcd841

Please sign in to comment.