Skip to content

Commit 563929c

Browse files
arturoromeroslcKent C. Dodds
authored andcommitted
Update example-react-router.md (testing-library#331)
The first example test did not pass because we expected the element to be a heading not a div. Next the assertion for a no match route is 404 Not Found
1 parent 1ee0eaa commit 563929c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/example-react-router.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import React from 'react'
99
import { withRouter } from 'react-router'
1010
import { Link, Route, Router, Switch } from 'react-router-dom'
1111

12-
const About = () => <div>You are on the about page</div>
13-
const Home = () => <div>You are home</div>
14-
const NoMatch = () => <div>No match</div>
12+
const About = () => <h1>You are on the about page</h1>
13+
const Home = () => <h1>You are home</h1>
14+
const NoMatch = () => <h1>404 Not Found</h1>
1515

1616
const LocationDisplay = withRouter(({ location }) => (
1717
<div data-testid="location-display">{location.pathname}</div>

0 commit comments

Comments
 (0)