implement tests, Tatort List , ComponentEmptyList refactoring
This commit is contained in:
9
tests/ComponentEmptyList.view.test.ts
Normal file
9
tests/ComponentEmptyList.view.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { render, screen } from '@testing-library/svelte';
|
||||
import EmptyList from '$lib/components/EmptyList.svelte'
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('Komponente: EmptyList', () => {
|
||||
it('zeigt Hinweistext "Keine Einträge"', () => {
|
||||
render(EmptyList);
|
||||
expect(screen.getByText(/keine Einträge/i)).toBeInTheDocument(); });
|
||||
});
|
||||
Reference in New Issue
Block a user