From fa183f37ce37d15385d50479e085144eeed27c94 Mon Sep 17 00:00:00 2001 From: Andre Emiliano Date: Mon, 5 Jul 2021 16:11:49 +0000 Subject: [PATCH] Minor change to tests --- src/App.test.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/App.test.js b/src/App.test.js index 48883b7..b75954e 100644 --- a/src/App.test.js +++ b/src/App.test.js @@ -1,8 +1,9 @@ -import { render, screen, fireEvent } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; import React from 'react'; import App from './App'; - + +/** Tests Frontend */ describe('App', () => { test('renders App component', () => { render(); @@ -11,3 +12,16 @@ describe('App', () => { }); }); + +/* Test not working properly + +import { render, screen } from '@testing-library/react'; +import App from './App'; + +test('renders learn react link', () => { + render(); + const linkElement = screen.getByText(/learn react/i); + expect(linkElement).toBeInTheDocument(); +}); + +*/ \ No newline at end of file