Skip to content

Commit 50da68a

Browse files
committed
Update testing.md
1 parent a91357d commit 50da68a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/guides/testing.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ React.render(<TestWrapper/>, testElement);
7676
```
7777

7878
This is handy because now you can force the code down certain paths if
79-
you add some behavior to the stubbed context. It's also a lot of junk to
80-
write, copy/paste this into your test utils to make things a bit easier:
79+
you add some behavior to the stubbed context. But It's also a lot of junk to
80+
write.
81+
82+
`stubRouterContext`
83+
-------------------
84+
85+
Copy/paste this helper into your test utils to make things a bit easier:
8186

8287
```js
8388
var stubRouterContext = (Component, props, stubs) => {

0 commit comments

Comments
 (0)