Skip to content

Commit

Permalink
Fix typo in test file name in React documentation (#5254)
Browse files Browse the repository at this point in the history
* Fix typo in test file name in React documentation

* Update name of snapshot file
  • Loading branch information
paskhaver authored and SimenB committed Jan 8, 2018
1 parent 490f435 commit 2daf8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/TutorialReact.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Now let's use React's test renderer and Jest's snapshot feature to interact with
the component and capture the rendered output and create a snapshot file:

```javascript
// Link.react-test.js
// Link.react.test.js
import React from 'react';
import Link from '../Link.react';
import renderer from 'react-test-renderer';
Expand Down Expand Up @@ -143,7 +143,7 @@ test('Link changes the class when hovered', () => {
When you run `npm test` or `jest`, this will produce an output file like this:

```javascript
// __tests__/__snapshots__/Link.react-test.js.snap
// __tests__/__snapshots__/Link.react.test.js.snap
exports[`Link changes the class when hovered 1`] = `
<a
className="normal"
Expand Down

0 comments on commit 2daf8fe

Please sign in to comment.