diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-23 00:16:46 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-23 00:16:46 +0100 |
commit | 19f1d31758727d09a173037583d8ed765d539a33 (patch) | |
tree | 2e47ef2542e5ff0f42e15a034cb0d35af7a83331 /test | |
parent | ee2420cbcca41f3c33a243084b11fd9946b87ed1 (diff) | |
download | gitbook-19f1d31758727d09a173037583d8ed765d539a33.zip gitbook-19f1d31758727d09a173037583d8ed765d539a33.tar.gz gitbook-19f1d31758727d09a173037583d8ed765d539a33.tar.bz2 |
Add base for ebook generator
Diffstat (limited to 'test')
-rw-r--r-- | test/pdf.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/pdf.js b/test/pdf.js new file mode 100644 index 0000000..9b5cf42 --- /dev/null +++ b/test/pdf.js @@ -0,0 +1,15 @@ +var path = require('path'); +var _ = require('lodash'); +var assert = require('assert'); + +var fs = require("fs"); +var fsUtil = require("../lib/utils/fs"); + + +describe('PDF Generator', function () { + it('should correctly generate a pdf', function(done) { + testGeneration(books[1], "pdf", function(output) { + assert(fs.existsSync(path.join(output, "book.pdf"))); + }, done); + }); +}); |