Skip to content

Commit

Permalink
Fix chai URL (#8895)
Browse files Browse the repository at this point in the history
The root domain, chaijs.com, does not serve a valid certificate
and gives a browser warning.
  • Loading branch information
BMorearty authored Jun 26, 2020
1 parent 6223fd9 commit abe2369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docusaurus/docs/running-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ it('renders welcome message', () => {

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

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

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.

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

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

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:
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:

```js
import sinon from 'sinon';
Expand Down

0 comments on commit abe2369

Please sign in to comment.