You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
writing tests for middleware example changed (#2496)
* writing tests for middleware example changed, #559
* note about mock impls
* backticks to single quotes
* better first test
* semi
* back ticks around `create`
We need to create a fake `getState`, `dispatch`, and `next` functions. We use `jest.fn()` to create stubs, but with other test frameworks you would likely use sinon.
In some cases, you will need to modify the `create` function to use different mock implementations of `getState` and `next`.
465
+
451
466
### Glossary
452
467
453
468
-[Enzyme](http://airbnb.io/enzyme/): Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.
0 commit comments