mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
0670db66c4
- Move from Mocha to Jest for JS testing (Jest seems to have better support for 'watching' tests and a more active community these days). - Codemod existing tests to Jest syntax (using https://github.com/skovhus/jest-codemods) - Fix some errors in tests that were previously hidden. - Update Babel. |
||
---|---|---|
.. | ||
redirect | ||
auth.js | ||
README.md |
Fleet Redux Middleware
The Fleet Redux Middleware handles actions before they hit the reducers. The current middleware does the following:
Authentication Middleware
The authentication middleware handles logging a user in/out and handles logging out a user when the API responds with an unauthenticated error.
Redirect Middleware
The redirect middleware transitions the user to the 500 page when an API call fails with a 500 status.