mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
Promisify SVGO
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user