]> git.r.bdr.sh - rbdr/forum/blobdiff - src/components/error_block/error_block.test.js
Update documentation
[rbdr/forum] / src / components / error_block / error_block.test.js
index bd2fe7a5b54ed4723988f70bbfd222feae0c4634..43c9331a75f461c0ab7b58f38f78535d3085c00c 100644 (file)
@@ -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();
+  });
 });