From d647b3e6628d76dbe207ce5991335c30787a8a6d Mon Sep 17 00:00:00 2001 From: Renard Date: Sun, 8 Mar 2020 18:04:24 -0300 Subject: First commit --- src/App.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/App.test.js (limited to 'src/App.test.js') diff --git a/src/App.test.js b/src/App.test.js new file mode 100644 index 0000000..4db7ebc --- /dev/null +++ b/src/App.test.js @@ -0,0 +1,9 @@ +import React from 'react'; +import { render } from '@testing-library/react'; +import App from './App'; + +test('renders learn react link', () => { + const { getByText } = render(); + const linkElement = getByText(/learn react/i); + expect(linkElement).toBeInTheDocument(); +}); -- cgit v1.2.1-18-gbd029