File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react"
2
+ import { screen } from "@testing-library/react"
3
+
4
+ import { render } from "../../test_helpers"
5
+ import { Navbar } from "./index"
6
+
7
+ describe ( "Navbar" , ( ) => {
8
+ it ( "renders content" , async ( ) => {
9
+ // When
10
+ render ( < Navbar /> )
11
+
12
+ // Then
13
+ await screen . findAllByText ( "Coder" , { exact : false } )
14
+ } )
15
+ } )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const Navbar: React.FC = () => {
18
18
</ Link >
19
19
</ div >
20
20
< div className = { styles . fullWidth } >
21
- < div className = { styles . title } > Hello, World - Coder v2</ div >
21
+ < div className = { styles . title } > Coder v2</ div >
22
22
</ div >
23
23
< div className = { styles . fixed } >
24
24
< List >
Original file line number Diff line number Diff line change
1
+ import React from "react"
2
+ import { screen } from "@testing-library/react"
3
+
4
+ import { render } from "../../test_helpers"
5
+ import { Footer } from "./Footer"
6
+
7
+ describe ( "Footer" , ( ) => {
8
+ it ( "renders content" , async ( ) => {
9
+ // When
10
+ render ( < Footer /> )
11
+
12
+ // Then
13
+ await screen . findByText ( "Copyright" , { exact : false } )
14
+ } )
15
+ } )
You can’t perform that action at this time.
0 commit comments