Skip to content

Commit

Permalink
Update README.md (facebook#1573)
Browse files Browse the repository at this point in the history
Update links to jest expect function.
  • Loading branch information
mkermani144 authored and SpaceK33z committed Mar 7, 2017
1 parent d07b7d1 commit 53b6ee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-cy-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ it('sums numbers', () => {
});
```

All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/api.html#expect-value).<br>
You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](http://facebook.github.io/jest/docs/api.html#tobecalled) to create “spies” or mock functions.
All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).<br>
You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](http://facebook.github.io/jest/docs/expect.html#tohavebeencalled) to create “spies” or mock functions.

### Testing Components

Expand Down Expand Up @@ -747,7 +747,7 @@ it('renders welcome message', () => {
});
```

All Jest matchers are [extensively documented here](http://facebook.github.io/jest/docs/api.html#expect-value).<br>
All Jest matchers are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).<br>
Nevertheless you can use a third-party assertion library like [Chai](http://chaijs.com/) if you want to, as described below.

Additionally, you might find [jest-enzyme](https://github.com/blainekasten/enzyme-matchers) helpful to simplify your tests with readable matchers. The above `contains` code can be written simpler with jest-enzyme.
Expand Down

0 comments on commit 53b6ee3

Please sign in to comment.