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', () => {
18 internals.results = render(Glyph, {
20 uuid: '9fb14ebc-bc64-400b-915f-d429ec44b8fe'
25 test('Should act as an image', () => {
26 expect(internals.results.getByRole('img')).toBeVisible();
29 test('Should render 4 glyphs', () => {
30 expect(internals.results.getByRole('img')).toHaveTextContent(/^. . . .$/);