diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-26 09:41:26 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-26 09:41:26 +0100 |
commit | d3d64f636c859f7f01a64f7774cf70bd8ccdc562 (patch) | |
tree | 4f7731f37c3a793d187b0ab1cd77680e69534c6c /test/output-ebook.js | |
parent | 4cb9cbb5ae3aa8f9211ffa3ac5e3d34232c0ca4f (diff) | |
parent | eef072693b17526347c37b66078a5059c71caa31 (diff) | |
download | gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.zip gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.gz gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.bz2 |
Merge pull request #1109 from GitbookIO/3.0.0
Version 3.0.0
Diffstat (limited to 'test/output-ebook.js')
-rw-r--r-- | test/output-ebook.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/output-ebook.js b/test/output-ebook.js new file mode 100644 index 0000000..c43fc55 --- /dev/null +++ b/test/output-ebook.js @@ -0,0 +1,33 @@ +var mock = require('./mock'); +var EbookOutput = require('../lib/output/ebook'); + +describe('Ebook Output', function() { + describe('Sample Book', function() { + var output; + + before(function() { + return mock.outputDefaultBook(EbookOutput) + .then(function(_output) { + output = _output; + }); + }); + + it('should correctly generate an index.html', function() { + output.should.have.file('index.html'); + }); + + it('should correctly generate a SUMMARY.html', function() { + output.should.have.file('index.html'); + }); + + it('should correctly copy assets', function() { + output.should.have.file('gitbook/ebook.css'); + }); + + it('should correctly copy plugins', function() { + output.should.have.file('gitbook/gitbook-plugin-highlight/ebook.css'); + }); + + }); + +}); |