Add base tests for ebook generation

This commit is contained in:
Samy Pessé
2015-03-24 13:52:29 +01:00
parent 7722e7bdfa
commit f775d41933
+24
View File
@@ -0,0 +1,24 @@
var fs = require('fs');
var path = require('path');
describe('eBook generator', function () {
describe('Basic Book', function() {
var book;
before(function() {
return books.generate("basic", "ebook")
.then(function(_book) {
book = _book;
});
});
it('should correctly output a SUMMARY.html', function() {
book.should.have.file("SUMMARY.html");
});
it('should correctly copy assets', function() {
book.should.have.file("gitbook");
book.should.have.file("gitbook/style.css");
});
});
});