Skip to content

Commit

Permalink
disable remote svg test
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Oct 22, 2021
1 parent 62032c3 commit de91247
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ describe('Convert SVG', function () {
})
});

it('convert a remote svg file to png',function(done) {
this.timeout(5000);
svg2img('https://upload.wikimedia.org/wikipedia/commons/a/a0/Svg_example1.svg', function(error, data) {
expect(error).not.to.be.ok();
expect(Buffer.isBuffer(data)).to.be.ok();
expect(data.length).to.be.above(0);
done();
})
});
// it('convert a remote svg file to png',function(done) {
// this.timeout(5000);
// svg2img('https://upload.wikimedia.org/wikipedia/commons/a/a0/Svg_example1.svg', function(error, data) {
// expect(error).not.to.be.ok();
// expect(Buffer.isBuffer(data)).to.be.ok();
// expect(data.length).to.be.above(0);
// done();
// })
// });

it('convert a svg string to png',function(done) {
var svg = fs.readFileSync(__dirname+'/ph.svg');
Expand Down

0 comments on commit de91247

Please sign in to comment.