Add simple test for exports

This commit is contained in:
Samy Pessé
2016-02-29 09:14:43 +01:00
parent 0494f7d1fd
commit 1c61f93b5f
2 changed files with 15 additions and 0 deletions
+3
View File
@@ -1,4 +1,7 @@
// Module API
require('./exports');
// Utilities
require('./location');
require('./paths');
+12
View File
@@ -0,0 +1,12 @@
var should = require('should');
var gitbook = require('../');
describe('Exports', function() {
it('should export the Book class', function() {
should(gitbook.Book).be.a.Function();
});
it('should export the list of commands', function() {
should(gitbook.commands).be.an.Array();
});
});