diff --git a/packages/icon/tests/component-test.ts b/packages/icon/tests/component-test.ts index fbf46fa..c76061d 100644 --- a/packages/icon/tests/component-test.ts +++ b/packages/icon/tests/component-test.ts @@ -277,10 +277,13 @@ describe('Testing icon component', () => { ) as DebugIconifyIconHTMLElement; expect(node.status).toBe('loading'); + // Set mode by changing property + node.mode = 'svg'; + expect(node.getAttribute('mode')).toBe('svg'); + // Set icon const body = ''; - node.mode = 'svg'; node.icon = { body, };