From efb0e57ad3a1711c6637a531adb8a403cfc1dbc5 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Sun, 15 Jan 2023 10:14:25 +0200 Subject: [PATCH] chore(utils): add test for complex animated icon --- packages/utils/tests/replace-ids-test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/utils/tests/replace-ids-test.ts b/packages/utils/tests/replace-ids-test.ts index 0ec2b0d..d24e385 100644 --- a/packages/utils/tests/replace-ids-test.ts +++ b/packages/utils/tests/replace-ids-test.ts @@ -146,4 +146,11 @@ describe('Testing replaceIDs', () => { }) ).toBe(expected); }); + + test('Replacing complex animation', () => { + const svg = + ''; + const replaced = replaceIDs(svg); + expect(replaced.indexOf('spinner_')).toBe(-1); + }); });