Skip to content

Commit

Permalink
docs: fix jest-diff example (jestjs#10067)
Browse files Browse the repository at this point in the history
  • Loading branch information
tundethomas authored May 21, 2020
1 parent 2460c05 commit 81712ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/JestPlatform.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Tool for visualizing changes in data. Exports a function that compares two value
### Example

```javascript
const diff = require('jest-diff');
const diff = require('jest-diff').default;

const a = {a: {b: {c: 5}}};
const b = {a: {b: {c: 6}}};
Expand All @@ -58,7 +58,7 @@ const code = `
*
* @flow
*/
console.log('Hello World!');
`;

Expand Down

0 comments on commit 81712ba

Please sign in to comment.