mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Add simple test for exports
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
|
||||
// Module API
|
||||
require('./exports');
|
||||
|
||||
// Utilities
|
||||
require('./location');
|
||||
require('./paths');
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user