blob: c43fc55087848b0608bfbb507f15514b84f4ca78 (
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
26
27
28
29
30
31
32
33
|
var mock = require('./mock');
var EbookOutput = require('../lib/output/ebook');
describe('Ebook Output', function() {
describe('Sample Book', function() {
var output;
before(function() {
return mock.outputDefaultBook(EbookOutput)
.then(function(_output) {
output = _output;
});
});
it('should correctly generate an index.html', function() {
output.should.have.file('index.html');
});
it('should correctly generate a SUMMARY.html', function() {
output.should.have.file('index.html');
});
it('should correctly copy assets', function() {
output.should.have.file('gitbook/ebook.css');
});
it('should correctly copy plugins', function() {
output.should.have.file('gitbook/gitbook-plugin-highlight/ebook.css');
});
});
});
|