mirror of
https://github.com/iconify/iconify.git
synced 2024-11-06 05:17:55 +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>');
|
|
});
|
|
});
|