From 224bd6ad631d6b6a35ff2dc21505a442ca65f938 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Tue, 3 May 2022 10:06:02 +0300 Subject: [PATCH] Web component: test changing mode via property --- packages/icon/tests/component-test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, };