2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-17 10:05:09 +00:00
iconify/components/svelte/tests/offline/10-empty.test.ts

18 lines
375 B
TypeScript
Raw Normal View History

/**
* @jest-environment jsdom
*/
2021-04-30 09:51:31 +00:00
import { render } from '@testing-library/svelte';
// Test importing from offline.mjs
import Icon from '../../dist/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).toBe('<div></div>');
2021-04-30 09:51:31 +00:00
});
});