From 2538e0e8d18665ab609b851fe94acb63215cd827 Mon Sep 17 00:00:00 2001 From: fuzhenn Date: Wed, 11 Nov 2020 21:14:12 +0800 Subject: [PATCH] disable test loading remote jpg --- test/specs.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/specs.js b/test/specs.js index 84e0ced..0d0d29c 100644 --- a/test/specs.js +++ b/test/specs.js @@ -84,20 +84,20 @@ describe('Convert SVG', function () { }) }); - it('convert a svg with an image', function (done) { - this.timeout(5000); - var imageUrl = 'https://res.cloudinary.com/verticalaxisbd/image/upload/h_239,w_239/rg1kxkgxayhdgoqdaejz.jpg'; - Image64.encode(imageUrl, {}, function (err, base64) { - var svgString = util.format('', 'data:image/png;base64,' + base64.toString('base64')); - svg2img(svgString, 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 with an image', function (done) { + // this.timeout(5000); + // var imageUrl = 'https://res.cloudinary.com/verticalaxisbd/image/upload/h_239,w_239/rg1kxkgxayhdgoqdaejz.jpg'; + // Image64.encode(imageUrl, {}, function (err, base64) { + // var svgString = util.format('', 'data:image/png;base64,' + base64.toString('base64')); + // svg2img(svgString, 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('scale a svg with width and height in style', function (done) { svg2img(__dirname+'/fy.svg', {width : 20, height: 30}, function (err, data) {