Skip to content

Commit 53b6ee3

Browse files
mkermani144SpaceK33z
authored andcommitted
Update README.md (facebook#1573)
Update links to jest expect function.
1 parent d07b7d1 commit 53b6ee3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-cy-scripts/template/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ it('sums numbers', () => {
688688
});
689689
```
690690

691-
All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/api.html#expect-value).<br>
692-
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.
691+
All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).<br>
692+
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.
693693

694694
### Testing Components
695695

@@ -747,7 +747,7 @@ it('renders welcome message', () => {
747747
});
748748
```
749749

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

753753
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.

0 commit comments

Comments
 (0)