X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/879fa389c2592760def75177eefbd3193e1845c9..55fb920baa9792266be1a6b981f954c622c1eaf9:/src/components/error_block/error_block.test.js diff --git a/src/components/error_block/error_block.test.js b/src/components/error_block/error_block.test.js index bd2fe7a..43c9331 100644 --- a/src/components/error_block/error_block.test.js +++ b/src/components/error_block/error_block.test.js @@ -5,9 +5,9 @@ import '$/config/i18n'; import ErrorBlock from './error_block.svelte'; -describe('Glyph component', () => { +describe('Error Block component', () => { - test('Should act as an image', () => { + test('Should display error message sent', () => { const results = render(ErrorBlock, { props: { message: 'An error has, sadly, destroyed everything.' @@ -16,5 +16,13 @@ describe('Glyph component', () => { expect(results.getByText('An error has, sadly, destroyed everything.')) .toBeVisible(); }); + + test('Should display default error message', () => { + + const results = render(ErrorBlock); + + expect(results.getByText('Unknown error has occurred. Panic!')) + .toBeVisible(); + }); });