]> git.r.bdr.sh - rbdr/forum/blob - src/components/error_block/error_block.test.js
1d7a7ac9a426a22aff5fd23d99582bb508d0c4ea
[rbdr/forum] / src / components / error_block / error_block.test.js
1 import '@testing-library/jest-dom/extend-expect';
2
3 import { render } from '@testing-library/svelte';
4 import '$/config/i18n';
5
6 import ErrorBlock from './error_block.svelte';
7
8 describe('Error Block component', () => {
9
10 test('Should act as an image', () => {
11
12 const results = render(ErrorBlock, { props: {
13 message: 'An error has, sadly, destroyed everything.'
14 } });
15
16 expect(results.getByText('An error has, sadly, destroyed everything.'))
17 .toBeVisible();
18 });
19 });
20