Skip to content

Commit d5eb3b2

Browse files
BMoreartyjmmorris
authored andcommitted
Fix chai URL (facebook#8895)
The root domain, chaijs.com, does not serve a valid certificate and gives a browser warning.
1 parent 20436b4 commit d5eb3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docusaurus/docs/running-tests.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ it('renders welcome message', () => {
147147

148148
All Jest matchers are [extensively documented here](https://jestjs.io/docs/en/expect.html).
149149

150-
Nevertheless you can use a third-party assertion library like [Chai](https://chaijs.com/) if you want to, as described below.
150+
Nevertheless you can use a third-party assertion library like [Chai](https://www.chaijs.com/) if you want to, as described below.
151151

152152
Additionally, you might find [jest-enzyme](https://github.com/blainekasten/enzyme-matchers) helpful to improve your tests with readable matchers. The above `contains` code can be written more concisely with jest-enzyme.
153153

@@ -216,7 +216,7 @@ Learn more about the utilities provided by `react-testing-library` to facilitate
216216

217217
We recommend that you use `expect()` for assertions and `jest.fn()` for spies. If you are having issues with them please [file those against Jest](https://github.com/facebook/jest/issues/new), and we’ll fix them. We intend to keep making them better for React, supporting, for example, [pretty-printing React elements as JSX](https://github.com/facebook/jest/pull/1566).
218218

219-
However, if you are used to other libraries, such as [Chai](https://chaijs.com/) and [Sinon](https://sinonjs.org/), or if you have existing code using them that you’d like to port over, you can import them normally like this:
219+
However, if you are used to other libraries, such as [Chai](https://www.chaijs.com/) and [Sinon](https://sinonjs.org/), or if you have existing code using them that you’d like to port over, you can import them normally like this:
220220

221221
```js
222222
import sinon from 'sinon';

0 commit comments

Comments
 (0)