Skip to content

Commit

Permalink
Fix chai URL (facebook#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 and abhiisheek committed May 24, 2023
1 parent bf1435d commit 9231c7b
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 9231c7b

Please sign in to comment.