mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 08:05:19 +00:00
25 lines
653 B
JavaScript
25 lines
653 B
JavaScript
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");
|
|
});
|
|
});
|
|
});
|