diff options
Diffstat (limited to 'test/website.js')
-rw-r--r-- | test/website.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/website.js b/test/website.js new file mode 100644 index 0000000..91340a0 --- /dev/null +++ b/test/website.js @@ -0,0 +1,25 @@ +var fs = require('fs'); +var path = require('path'); + +describe('Website generator', function () { + describe('Basic Book', function() { + var book; + + before(function() { + return books.generate("basic", "website") + .then(function(_book) { + book = _book; + }); + }); + + it('should correctly output an index.html', function() { + book.should.have.file("index.html"); + }); + + it('should correctly copy assets', function() { + book.should.have.file("gitbook"); + book.should.have.file("gitbook/app.js"); + book.should.have.file("gitbook/style.css"); + }); + }); +}); |