From 1c61f93b5ff025972ebcdcd82ec05a0253493d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 29 Feb 2016 09:14:43 +0100 Subject: [PATCH] Add simple test for exports --- test/all.js | 3 +++ test/exports.js | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/exports.js diff --git a/test/all.js b/test/all.js index 67b166154..cb4e6051c 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 000000000..ae298dc10 --- /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(); + }); +});