2
0
mirror of https://github.com/iconify/iconify.git synced 2024-09-29 13:39:08 +00:00
iconify/components/svelte/tests/offline/10-empty.test.ts

16 lines
373 B
TypeScript
Raw Normal View History

/**
* @jest-environment jsdom
*/
2021-04-30 09:51:31 +00:00
import { render } from '@testing-library/svelte';
import Icon from '../../offline';
2021-04-30 09:51:31 +00:00
describe('Empty icon', () => {
test('basic test', () => {
const component = render(Icon, {});
const html = component.container.innerHTML;
// Empty container div
expect(html.replaceAll('<!--<OfflineIcon>-->', '')).toBe('<div></div>');
2021-04-30 09:51:31 +00:00
});
});