Skip to content

Commit 893e311

Browse files
author
최한울
committed
헤더에 대한 테스트를 작성한다
1 parent b7dbf4a commit 893e311

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/App.test.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import { render, screen } from '@testing-library/react';
1+
import { render } from '@testing-library/react';
2+
23
import App from './App';
34

4-
test('renders learn react link', () => {
5-
render(<App />);
6-
const linkElement = screen.getByText(/learn react/i);
7-
expect(linkElement).toBeInTheDocument();
5+
describe('App', () => {
6+
it('renders header', () => {
7+
const { queryByText } = render(<App />);
8+
expect(queryByText('SOOM.GG')).not.toBeNull();
9+
});
810
});

0 commit comments

Comments
 (0)