implement tests, Tatort List , ComponentEmptyList refactoring

This commit is contained in:
2025-09-08 17:46:33 +02:00
parent 38cdaa538a
commit 650cfd0061
5 changed files with 84 additions and 22 deletions

View 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(); });
});