From fbf108595a00a7c9db5984158e4b02cc345b68d1 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 31 Jan 2020 19:20:13 +0200 Subject: Initial commit --- frontend/src/App.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 frontend/src/App.test.js (limited to 'frontend/src/App.test.js') diff --git a/frontend/src/App.test.js b/frontend/src/App.test.js new file mode 100644 index 0000000..4db7ebc --- /dev/null +++ b/frontend/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.3