X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/879fa389c2592760def75177eefbd3193e1845c9..535cbcc7b81355197af4e39549cd22a6c505d54c:/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(); + }); });