From 56d6d6e30aab78efdb89b2f2be2974e2d4867833 Mon Sep 17 00:00:00 2001 From: Szymon Brud Date: Sun, 18 Feb 2024 12:07:20 +0100 Subject: [PATCH] fix: update unit test --- src/components/Hello/Hello.test.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Hello/Hello.test.js b/src/components/Hello/Hello.test.js index 38138dc..3ea9349 100644 --- a/src/components/Hello/Hello.test.js +++ b/src/components/Hello/Hello.test.js @@ -3,10 +3,12 @@ import React from 'react'; import { render, screen } from '../../test-utils'; import { Hello } from './Hello'; -test('renders learn react link', () => { - const SAMPLE_TEXT = 'abcd'; +describe('Hello component', () => { + test('Should render text', () => { + const SAMPLE_TEXT = 'abcd'; - render(); - const element = screen.getByText(SAMPLE_TEXT); - expect(element).toBeInTheDocument(); + render(); + const element = screen.getByText(SAMPLE_TEXT); + expect(element).toBeInTheDocument(); + }); });