1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-31 07:44:22 +03:00

Promisify SVGO

This commit is contained in:
GreLI
2017-03-25 23:41:44 +03:00
parent e4be4bbc10
commit d74f6a0e2f
5 changed files with 32 additions and 48 deletions

View File

@ -44,9 +44,8 @@ describe('plugins tests', function() {
js2svg : { pretty: true }
});
svgo.optimize(orig, function(result) {
//FIXME: results.data has a '\n' at the end while it should not
svgo.optimize(orig).then(function(result) {
//FIXME: results.data has a '\n' at the end while it should not
normalize(result.data).should.be.equal(should);
done();
});

View File

@ -30,7 +30,7 @@ describe('indentation', function() {
js2svg : { pretty: true, indent: 2 }
});
svgo.optimize(orig, function(result) {
svgo.optimize(orig).then(function(result) {
normalize(result.data).should.be.equal(should);
done();
});