mirror of
https://github.com/iconify/iconify.git
synced 2024-12-14 14:38:25 +00:00
16 lines
373 B
TypeScript
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>');
|
|
});
|
|
});
|