From 53b6ee3200e5a01d517f1c6029a067e08dc0dcd6 Mon Sep 17 00:00:00 2001 From: Mohammad Kermani Date: Thu, 16 Feb 2017 15:20:51 +0330 Subject: [PATCH] Update README.md (#1573) Update links to jest expect function. --- packages/react-cy-scripts/template/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-cy-scripts/template/README.md b/packages/react-cy-scripts/template/README.md index 127ece71693..872274e7e91 100644 --- a/packages/react-cy-scripts/template/README.md +++ b/packages/react-cy-scripts/template/README.md @@ -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).
-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).
+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 @@ -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).
+All Jest matchers are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).
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.