diff --git a/test/specs.js b/test/specs.js index 9d2e4b8..b2f600c 100644 --- a/test/specs.js +++ b/test/specs.js @@ -86,7 +86,7 @@ describe('Convert SVG', function () { it('convert a svg with an image', function (done) { this.timeout(5000); - var imageUrl = 'https://zh.wikipedia.org/static/images/project-logos/zhwiki-hans.png'; + var imageUrl = 'file://'+__dirname+'/zhwiki-hans.png'; Image64.encode(imageUrl, {}, function (err, base64) { var svgString = util.format('', 'data:image/png;base64,' + base64.toString('base64')); diff --git a/test/zhwiki-hans.png b/test/zhwiki-hans.png new file mode 100644 index 0000000..656c053 Binary files /dev/null and b/test/zhwiki-hans.png differ