diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-29 09:14:43 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-29 09:14:43 +0100 |
commit | 1c61f93b5ff025972ebcdcd82ec05a0253493d4e (patch) | |
tree | d8991d198a369dc68e5845077f278cf97da0b01e | |
parent | 0494f7d1fd084f843cbca09aeb8e23ebb4075730 (diff) | |
download | gitbook-1c61f93b5ff025972ebcdcd82ec05a0253493d4e.zip gitbook-1c61f93b5ff025972ebcdcd82ec05a0253493d4e.tar.gz gitbook-1c61f93b5ff025972ebcdcd82ec05a0253493d4e.tar.bz2 |
Add simple test for exports
-rw-r--r-- | test/all.js | 3 | ||||
-rw-r--r-- | test/exports.js | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/all.js b/test/all.js index 67b1661..cb4e605 100644 --- a/test/all.js +++ b/test/all.js @@ -1,4 +1,7 @@ +// Module API +require('./exports'); + // Utilities require('./location'); require('./paths'); diff --git a/test/exports.js b/test/exports.js new file mode 100644 index 0000000..ae298dc --- /dev/null +++ b/test/exports.js @@ -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(); + }); +}); |