diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-28 16:36:17 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-28 16:36:17 +0100 |
commit | 56d1720aaea2472f12e045f61a2fb0bdf7da9343 (patch) | |
tree | ac1b18bd3851e3395d1dee9eca5a2ae11ee66c84 /test/ebook.js | |
parent | 02d7102c687c3d2295bd1586fe6e79f14396e740 (diff) | |
download | gitbook-56d1720aaea2472f12e045f61a2fb0bdf7da9343.zip gitbook-56d1720aaea2472f12e045f61a2fb0bdf7da9343.tar.gz gitbook-56d1720aaea2472f12e045f61a2fb0bdf7da9343.tar.bz2 |
Improve image conversion to png to avoid doublons
Diffstat (limited to 'test/ebook.js')
-rw-r--r-- | test/ebook.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ebook.js b/test/ebook.js index e0083c8..05a2000 100644 --- a/test/ebook.js +++ b/test/ebook.js @@ -16,6 +16,7 @@ describe('eBook Generator', function () { it('should correctly convert svg images to png', function(done) { testGeneration(books[4], "ebook", function(output) { assert(fs.existsSync(path.join(output, "test.png"))); + assert(!fs.existsSync(path.join(output, "test_0.png"))); assert(fs.existsSync(path.join(output, "NewTux.png"))); }, done); }); |