summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-28 12:46:15 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-28 12:46:15 +0100
commit534edaceac1bc436a5230094cc2ae5cb32596fb8 (patch)
tree707de4eac7610ee8426cd63a8c8e80e13c999cad /test
parentee13b4bf75b05bf4814deffdfc9609ce7fa8922a (diff)
downloadgitbook-534edaceac1bc436a5230094cc2ae5cb32596fb8.zip
gitbook-534edaceac1bc436a5230094cc2ae5cb32596fb8.tar.gz
gitbook-534edaceac1bc436a5230094cc2ae5cb32596fb8.tar.bz2
Handle absolute url for images conversion (svg -> png)
Diffstat (limited to 'test')
-rw-r--r--test/ebook.js1
-rw-r--r--test/fixtures/test4/README.md1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/ebook.js b/test/ebook.js
index b82bb19..e0083c8 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, "NewTux.png")));
}, done);
});
});
diff --git a/test/fixtures/test4/README.md b/test/fixtures/test4/README.md
index 6d7efdc..0d3bd13 100644
--- a/test/fixtures/test4/README.md
+++ b/test/fixtures/test4/README.md
@@ -3,3 +3,4 @@
A description
![test image to be converted](./test.svg)
+![test url](http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg)