mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 15:44:05 +00:00
Web component: test changing mode via property
This commit is contained in:
parent
dd85cacfcc
commit
224bd6ad63
@ -277,10 +277,13 @@ describe('Testing icon component', () => {
|
|||||||
) as DebugIconifyIconHTMLElement;
|
) as DebugIconifyIconHTMLElement;
|
||||||
expect(node.status).toBe('loading');
|
expect(node.status).toBe('loading');
|
||||||
|
|
||||||
|
// Set mode by changing property
|
||||||
|
node.mode = 'svg';
|
||||||
|
expect(node.getAttribute('mode')).toBe('svg');
|
||||||
|
|
||||||
// Set icon
|
// Set icon
|
||||||
const body =
|
const body =
|
||||||
'<rect width="10" height="10"><animate attributeName="width" values="10;5;10" dur="10s" repeatCount="indefinite" /></rect>';
|
'<rect width="10" height="10"><animate attributeName="width" values="10;5;10" dur="10s" repeatCount="indefinite" /></rect>';
|
||||||
node.mode = 'svg';
|
|
||||||
node.icon = {
|
node.icon = {
|
||||||
body,
|
body,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user