summaryrefslogtreecommitdiffstats
path: root/test/website.js
blob: 91340a04e9d71fcd73a20c05bf4750d42e25fb4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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");
        });
    });
});