aboutsummaryrefslogtreecommitdiff
path: root/src/components/error_block/error_block.test.js
blob: bd2fe7a5b54ed4723988f70bbfd222feae0c4634 (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('Glyph 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();
  });
});