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