diff options
Diffstat (limited to 'test/website.js')
-rw-r--r-- | test/website.js | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/test/website.js b/test/website.js index ebbd18c..6a0fd1c 100644 --- a/test/website.js +++ b/test/website.js @@ -1,22 +1,26 @@ -describe("Website generator", function () { - describe("Basic Book", function() { +describe('Website generator', function () { + describe('Basic Book', function() { var book; before(function() { - return books.generate("basic", "website") + 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 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"); + 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'); + }); + + it('should not copy ebook assets', function() { + book.should.not.have.file('gitbook/ebook.css'); }); }); }); |