diff --git a/test/ebook.js b/test/ebook.js index e835a6e5b..b82bb1997 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); + }); }); diff --git a/test/fixtures/test4/README.md b/test/fixtures/test4/README.md index d26ab9b63..6d7efdc49 100644 --- a/test/fixtures/test4/README.md +++ b/test/fixtures/test4/README.md @@ -1,3 +1,5 @@ # Other Title A description + +![test image to be converted](./test.svg) diff --git a/test/fixtures/test4/test.svg b/test/fixtures/test4/test.svg new file mode 100644 index 000000000..417f2c141 --- /dev/null +++ b/test/fixtures/test4/test.svg @@ -0,0 +1,11 @@ + + + + basic SVG tiny doc + + hello world + + Revision: 1.1 + + +