2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-14 14:38:25 +00:00
iconify/components/svelte/tests/offline/10-empty.test.ts
2024-04-15 18:15:11 +03:00

16 lines
373 B
TypeScript

/**
* @jest-environment jsdom
*/
import { render } from '@testing-library/svelte';
import Icon from '../../offline';
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>');
});
});