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

lib/svgo: global API refactoring (close #37); temporarily remove PhantomJS and --test (close #38)

This commit is contained in:
deepsweet
2012-11-09 18:54:00 +02:00
parent 172b7ea296
commit 1b296adc7e
11 changed files with 223 additions and 232 deletions

View File

@@ -66,7 +66,7 @@ function getResult(name, index) {
.then(function(input) {
mySVGO.enableOnlyOne(name);
return mySVGO.optimize(input.toString());
return mySVGO.fromString(input.toString());
})
.then(function(min) {
return readFile(name + '.' + index +'.should.svg')