summaryrefslogtreecommitdiffstats
path: root/lib/output/modifiers/__tests__/svgToImg.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-04-27 22:18:33 +0200
committerSamy Pesse <samypesse@gmail.com>2016-04-27 22:18:33 +0200
commit9bb0a3fbd355b6dda2fe33e3a83884baa8f30917 (patch)
tree567c1f02e05704039c87e42e10d4d5c9fb0ed9bf /lib/output/modifiers/__tests__/svgToImg.js
parent9a1a6f2625612c18745957c4331be27dfdc2fb34 (diff)
downloadgitbook-9bb0a3fbd355b6dda2fe33e3a83884baa8f30917.zip
gitbook-9bb0a3fbd355b6dda2fe33e3a83884baa8f30917.tar.gz
gitbook-9bb0a3fbd355b6dda2fe33e3a83884baa8f30917.tar.bz2
Add tests for svg inliner
Diffstat (limited to 'lib/output/modifiers/__tests__/svgToImg.js')
-rw-r--r--lib/output/modifiers/__tests__/svgToImg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/output/modifiers/__tests__/svgToImg.js b/lib/output/modifiers/__tests__/svgToImg.js
index 762a02e..793395e 100644
--- a/lib/output/modifiers/__tests__/svgToImg.js
+++ b/lib/output/modifiers/__tests__/svgToImg.js
@@ -12,10 +12,10 @@ describe('svgToImg', function() {
pit('should write svg as a file', function() {
var $ = cheerio.load('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" version="1.1"><rect width="200" height="100" stroke="black" stroke-width="6" fill="green"/></svg>');
- return svgToImg(dir.name, $)
+ return svgToImg(dir.name, 'index.html', $)
.then(function() {
var $img = $('img');
- var src = '.' + $img.attr('src');
+ var src = $img.attr('src');
expect(dir.name).toHaveFile(src);
});