Skip to content

Commit 13989b5

Browse files
committed
more config
1 parent aca416c commit 13989b5

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/app/__tests__new/NewTest.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ import MainContainer from '../containers/MainContainer'
77

88

99

10-
test('Main Container should render', () => {
11-
render(<MainContainer />);
12-
screen.debug();
13-
});
10+
// test('Main Container should render', () => {
11+
// render(<MainContainer />);
12+
// screen.debug();
13+
// });
1414

1515

1616

17-
// const Header = () => {
18-
// return <h1 className='title'>I am a header</h1>
19-
// };
17+
const Header = () => {
18+
return <h1 className='title'>I am a header</h1>
19+
};
2020

2121

22-
// test('Test should run, header renders and it has correct stuff', () => {
23-
// render(<Header />);
24-
// // Extract header
25-
// screen.debug();
26-
// // allows the DOM to be rendered
27-
28-
// const header = screen.getByRole('heading');
29-
// // Use jest-dom assertions
30-
// expect(header).toBeInTheDocument();
31-
// expect(header).toHaveTextContent('I am a header');
32-
// expect(header).toHaveClass('title');
33-
// });
22+
test('Test should run, header renders and it has correct stuff', () => {
23+
render(<Header />);
24+
// Extract header
25+
screen.debug();
26+
// allows the DOM to be rendered
27+
28+
const header = screen.getByRole('heading');
29+
// Use jest-dom assertions
30+
expect(header).toBeInTheDocument();
31+
expect(header).toHaveTextContent('I am a header');
32+
expect(header).toHaveClass('title');
33+
});

0 commit comments

Comments
 (0)