2 * @jest-environment jsdom
5 import '@testing-library/jest-dom/extend-expect';
7 import { render } from '@testing-library/svelte';
10 import Glyph from './glyph.svelte';
16 describe('Glyph component', () => {
20 internals.results = render(Glyph, { props: {
21 uuid: '9fb14ebc-bc64-400b-915f-d429ec44b8fe'
25 test('Should act as an image', () => {
27 expect(internals.results.getByRole('img'))
31 test('Should render 4 glyphs', () => {
33 expect(internals.results.getByRole('img'))
34 .toHaveTextContent(/^. . . .$/);