diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-18 10:53:57 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-18 10:53:57 +0100 |
commit | 52206ce9d0353bc01b7238fe86aa19a92ec6effb (patch) | |
tree | 21689d1508df2ba9c6c067ba0f5f2e8544a24b87 /test/output-website.js | |
parent | 1de9d5683b30b4f24c2aba4f796a6d77f0ce7004 (diff) | |
download | gitbook-52206ce9d0353bc01b7238fe86aa19a92ec6effb.zip gitbook-52206ce9d0353bc01b7238fe86aa19a92ec6effb.tar.gz gitbook-52206ce9d0353bc01b7238fe86aa19a92ec6effb.tar.bz2 |
Add test for copy of assets in website generator
Diffstat (limited to 'test/output-website.js')
-rw-r--r-- | test/output-website.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/output-website.js b/test/output-website.js index 86c9d2b..bc15bcc 100644 --- a/test/output-website.js +++ b/test/output-website.js @@ -1,5 +1,28 @@ +var mock = require('./mock'); +var WebsiteOutput = require('../lib/output/website'); describe('Website Output', function() { + describe('Sample Book', function() { + var output; + + before(function() { + return mock.outputDefaultBook(WebsiteOutput) + .then(function(_output) { + output = _output; + }); + }); + + it('should correctly generate an index.html', function() { + output.should.have.file('index.html'); + }); + + it('should correctly copy assets', function() { + output.should.have.file('gitbook/app.js'); + output.should.have.file('gitbook/images/favicon.ico'); + }); + + }); + }); |