Skip to content

Commit

Permalink
update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Aug 5, 2020
1 parent 0f3c0e4 commit d8eff6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="540" height="258" ' +
'viewBox="0 0 540 258"><image width="540" height="258" x="0" y="0" href="%s"></image></svg>', 'data:image/png;base64,' + base64.toString('base64'));
Expand Down
Binary file added test/zhwiki-hans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8eff6e

Please sign in to comment.