mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-09 00:02:29 +03:00
15 lines
596 B
TypeScript
15 lines
596 B
TypeScript
import { describe, it, expect, afterEach } from 'vitest';
|
|
import { cleanup, render } from '@testing-library/svelte';
|
|
import { OverlayScrollbarsComponent } from '~/index'; // eslint-disable-line import/named
|
|
|
|
describe('Hello.svelte', () => {
|
|
// TODO: @testing-library/svelte claims to add this automatically but it doesn't work without explicit afterEach
|
|
afterEach(() => cleanup());
|
|
|
|
it('mounts', () => {
|
|
const { container } = render(OverlayScrollbarsComponent);
|
|
expect(container).toBeTruthy();
|
|
expect(container.innerHTML).toContain('Welcome to your library project');
|
|
});
|
|
});
|