summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ebook.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/ebook.js b/test/ebook.js
new file mode 100644
index 0000000..c9bb924
--- /dev/null
+++ b/test/ebook.js
@@ -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");
+ });
+ });
+});