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.'
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();
+ });
});