File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -7,27 +7,27 @@ import MainContainer from '../containers/MainContainer'
7
7
8
8
9
9
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
+ // });
14
14
15
15
16
16
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
+ } ;
20
20
21
21
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
+ } ) ;
You can’t perform that action at this time.
0 commit comments