aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.test.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-09-27 23:14:18 +0100
committerGravatar Joe Banks <[email protected]>2020-09-27 23:14:18 +0100
commit6a492df9ebb270afee94d0f8db596a7e887e631e (patch)
treeabf38b335b83f262a6c1e949d6bba97273edbf9f /src/App.test.tsx
Initialize project using Create React App
Diffstat (limited to 'src/App.test.tsx')
-rw-r--r--src/App.test.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/App.test.tsx b/src/App.test.tsx
new file mode 100644
index 0000000..4db7ebc
--- /dev/null
+++ b/src/App.test.tsx
@@ -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(<App />);
+ const linkElement = getByText(/learn react/i);
+ expect(linkElement).toBeInTheDocument();
+});