]>
git.r.bdr.sh - rbdr/forum/blob - src/components/glyph/glyph.test.js
1 import '@testing-library/jest-dom/extend-expect';
3 import { render
} from '@testing-library/svelte';
4 import '$/config/i18n';
6 import Glyph
from './glyph.svelte';
12 describe('Glyph component', () => {
16 internals
.results
= render(Glyph
, { props: {
17 uuid: '9fb14ebc-bc64-400b-915f-d429ec44b8fe'
21 test('Should act as an image', () => {
23 expect(internals
.results
.getByRole('img'))
27 test('Should render 4 glyphs', () => {
29 expect(internals
.results
.getByRole('img'))
30 .toHaveTextContent(/^. . . .$/);