Skip to content

Commit

Permalink
test: add check for keyframe selector to
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco committed Sep 23, 2023
1 parent 59ab80e commit fac6daa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/svgo/_index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,12 @@ describe('svgo', () => {
});
expect(normalize(result.data)).toEqual(expected);
});
it('should preserve "to" keyframe selector', async () => {
const [original, expected] = await parseFixture('keyframe-selectors.svg');
const result = optimize(original, {
path: 'input.svg',
js2svg: { pretty: true },
});
expect(normalize(result.data)).toEqual(expected);
});
});
13 changes: 13 additions & 0 deletions test/svgo/keyframe-selectors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fac6daa

Please sign in to comment.