Skip to content

Commit db78c4b

Browse files
authored
chore: Remove unused argument "input" in calls to optmize() (#1901)
1 parent 6996fca commit db78c4b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/svgo/_index.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@ describe('svgo', () => {
2828
});
2929
it('should handle plugins order properly', async () => {
3030
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' });
3232
expect(normalize(result.data)).toEqual(expected);
3333
});
3434
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' });
3636
expect(result.data).toEqual('<svg/>');
3737
});
3838
it('should preserve style specificity over attributes', async () => {
3939
const [original, expected] = await parseFixture('style-specifity.svg');
4040
const result = optimize(original, {
41-
input: 'file',
4241
path: 'input.svg',
4342
js2svg: { pretty: true },
4443
});

0 commit comments

Comments
 (0)