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