diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-28 12:02:36 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-28 12:02:36 +0100 |
commit | 924006d508f79e8d0f6db27f74bc1e59672b7be1 (patch) | |
tree | 6fc7221e57280f7f0610a8009e814df0a84b77fa /test/ebook.js | |
parent | 350f34561a07bf6291bd8770866685128a09bef5 (diff) | |
download | gitbook-924006d508f79e8d0f6db27f74bc1e59672b7be1.zip gitbook-924006d508f79e8d0f6db27f74bc1e59672b7be1.tar.gz gitbook-924006d508f79e8d0f6db27f74bc1e59672b7be1.tar.bz2 |
Add test for svg conversion
Diffstat (limited to 'test/ebook.js')
-rw-r--r-- | test/ebook.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ebook.js b/test/ebook.js index e835a6e..b82bb19 100644 --- a/test/ebook.js +++ b/test/ebook.js @@ -12,4 +12,10 @@ describe('eBook Generator', function () { assert(fs.existsSync(path.join(output, "SUMMARY.html"))); }, done); }); + + it('should correctly convert svg images to png', function(done) { + testGeneration(books[4], "ebook", function(output) { + assert(fs.existsSync(path.join(output, "test.png"))); + }, done); + }); }); |