This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(routes): added default 404 route
- Loading branch information
1 parent
21021e7
commit d8f1bad
Showing
4 changed files
with
101 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`routes should clear the 404 status when leaving the unmatched route 1`] = ` | ||
Object { | ||
"type": "@americanexpress/one-app-ducks/error/CLEAR_APPLICATION_ERROR", | ||
} | ||
`; | ||
|
||
exports[`routes should set the status to 404 1`] = ` | ||
Object { | ||
"error": Any<Error>, | ||
"meta": Object { | ||
"code": 404, | ||
"collectionMethod": "applicationError", | ||
"location": Object { | ||
"pathname": "missing", | ||
}, | ||
}, | ||
"type": "ADD_ERROR_TO_REPORT", | ||
} | ||
`; | ||
exports[`routes should set the status to 404 2`] = ` | ||
Object { | ||
"code": 404, | ||
"type": "@americanexpress/one-app-ducks/error/APPLICATION_ERROR", | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters