There was an error while loading. Please reload this page.
1 parent d644470 commit c71edb6Copy full SHA for c71edb6
src/App.test.js
src/Todo.test.js
@@ -0,0 +1,9 @@
1
+import React from 'react';
2
+import { render } from '@testing-library/react';
3
+import Todo from './Todo';
4
+
5
+test('renders add todo input', () => {
6
+ const { getByPlaceholderText } = render(<Todo />);
7
+ const addTodoInputElement = getByPlaceholderText(/What needs to be done?/i);
8
+ expect(addTodoInputElement).toBeInTheDocument();
9
+});
0 commit comments