Skip to content

Commit 17f5a67

Browse files
committed
# custom hooks
1 parent ccbce7c commit 17f5a67

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

custom-hooks/src/App.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { render, screen } from '@testing-library/react';
2+
import App from './App';
3+
4+
test('renders learn react link', () => {
5+
render(<App />);
6+
const linkElement = screen.getByText(/learn react/i);
7+
expect(linkElement).toBeInTheDocument();
8+
});

0 commit comments

Comments
 (0)