chore(web): use development lang for tests (#10025)

This commit is contained in:
Michel Heusschen
2024-06-07 17:12:39 +02:00
committed by GitHub
parent 3e118793de
commit d5f3d98dfc
6 changed files with 7 additions and 24 deletions
@@ -1,14 +1,9 @@
import AlbumDescription from '$lib/components/album-page/album-description.svelte';
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/svelte';
import { init } from 'svelte-i18n';
import { describe } from 'vitest';
describe('AlbumDescription component', () => {
beforeAll(async () => {
await init({ fallbackLocale: 'en-US' });
});
it('shows an AutogrowTextarea component when isOwned is true', () => {
render(AlbumDescription, { isOwned: true, id: '', description: '' });
const autogrowTextarea = screen.getByTestId('autogrow-textarea');