File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,16 @@ describe('svgo', () => {
28
28
} ) ;
29
29
it ( 'should handle plugins order properly' , async ( ) => {
30
30
const [ original , expected ] = await parseFixture ( 'plugins-order.svg' ) ;
31
- const result = optimize ( original , { input : 'file' , path : 'input.svg' } ) ;
31
+ const result = optimize ( original , { path : 'input.svg' } ) ;
32
32
expect ( normalize ( result . data ) ) . toEqual ( expected ) ;
33
33
} ) ;
34
34
it ( 'should handle empty svg tag' , async ( ) => {
35
- const result = optimize ( '<svg />' , { input : 'file' , path : 'input.svg' } ) ;
35
+ const result = optimize ( '<svg />' , { path : 'input.svg' } ) ;
36
36
expect ( result . data ) . toEqual ( '<svg/>' ) ;
37
37
} ) ;
38
38
it ( 'should preserve style specificity over attributes' , async ( ) => {
39
39
const [ original , expected ] = await parseFixture ( 'style-specifity.svg' ) ;
40
40
const result = optimize ( original , {
41
- input : 'file' ,
42
41
path : 'input.svg' ,
43
42
js2svg : { pretty : true } ,
44
43
} ) ;
You can’t perform that action at this time.
0 commit comments