Created
October 11, 2019 14:23
-
-
Save jclk86/fb9041d1eca16e929f86efa756ab6ad8 to your computer and use it in GitHub Desktop.
ERROR
This file contains hidden or 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
| › 1 snapshot obsolete. | |
| • AddItemForm Component Renders an AddItemForm without issue 1 | |
| FAIL src/Components/AddItemForm/AddItemForm.test.js | |
| AddItemForm Component | |
| √ Renders an AddItemForm without issue (11ms) | |
| × fires submit (69ms) | |
| ● AddItemForm Component › fires submit | |
| InvalidTokenError: Invalid token specifiedInvalidTokenError: | |
| 1 | import config from "../config"; | |
| > 2 | import jwtDecode from "jwt-decode"; | |
| | ^ | |
| 3 | | |
| 4 | let _timeoutId; | |
| 5 | const _TEN_SECONDS_IN_MS = 10000; | |
| at Object.<anonymous> (node_modules/jwt-decode/lib/index.js:9:31) | |
| at Object.<anonymous> (src/services/token-service.js:2:1) | |
| at Object.<anonymous> (src/services/inventory-api-service.js:2:1) | |
| at Object.<anonymous> (src/Components/AddItemForm/AddItemForm.js:6:1) | |
| at Object.<anonymous> (src/Components/AddItemForm/AddItemForm.test.js:5:1) | |
| console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
| Error: Uncaught [InvalidTokenError: Invalid token specified] | |
| at reportException (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24) | |
| at invokeEventListeners (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:209:9) | |
| at HTMLUnknownElementImpl._dispatch (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:119:9) | |
| at HTMLUnknownElementImpl.dispatchEvent (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:8 PASS src/Components/RegistrationForm/RegistrationForm.test.js | |
| FAIL src/Components/EditItemForm/EditItemForm.test.js | |
| ● Console | |
| console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
| Error: Uncaught [InvalidTokenError: Invalid token specified] | |
| at reportException (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24) | |
| at invokeEventListeners (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:209:9) | |
| at HTMLUnknownElementImpl._dispatch (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:119:9) | |
| at HTMLUnknownElementImpl.dispatchEvent (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:82:17) | |
| at HTMLUnknownElementImpl.dispatchEvent (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\nodes\HTMLElement-impl.js:30:27) | |
| at HTMLUnknownElement.dispatchEvent (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\generated\EventTarget.js:157:21) | |
| at Object.invokeGuardedCallbackDev (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:397:16) | |
| at invokeGuardedCallback (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:454:31) | |
| at beginWork$$1 (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:23217:7) | |
| at performUnitOfWork (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:22211:12) Error { message: 'Invalid token specified' } | |
| console.error node_modules/react-dom/cjs/react-dom.development.js:19814 | |
| The above error occurred in the <EditItemForm> component: | |
| in EditItemForm (created by Context.Consumer) | |
| in withRouter(EditItemForm) (at EditItemForm.test.js:19) | |
| in Router (created by BrowserRouter) | |
| in BrowserRouter (created by WrapperComponent) | |
| in WrapperComponent | |
| Consider adding an error boundary to your tree to customize error handling behavior. | |
| Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
| ● EdItemForm Component › fires submit | |
| InvalidTokenError: Invalid token specifiedInvalidTokenError: | |
| 1 | import config from "../config"; | |
| > 2 | import jwtDecode from "jwt-decode"; | |
| | ^ | |
| 3 | | |
| 4 | let _timeoutId; | |
| 5 | const _TEN_SECONDS_IN_MS = 10000; | |
| at Object.<anonymous> (node_modules/jwt-decode/lib/index.js:9:31) | |
| at Object.<anonymous> (src/services/token-service.js:2:1) | |
| at Object.<anonymous> (src/services/inventory-api-service.js:2:1) | |
| at Object.<anonymous> (src/Components/EditItemForm/EditItemForm.js:6:1) | |
| at Object.<anonymous> (src/Components/EditItemForm/EditItemForm.test.js:5:1) | |
| PASS src/Components/LoginForm/LoginForm.test.js | |
| PASS src/Components/TagsListItem/TagsListItem.test.js | |
| PASS src/Components/SearchBox/SearchBox.test.js | |
| PASS src/Components/App/App.test.js | |
| FAIL src/Components/AddItemForm/AddItemForm.test.js (5.98s) | |
| ● Console | |
| console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29 | |
| Error: Uncaught [InvalidTokenError: Invalid token specified] | |
| at reportException (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24) | |
| at invokeEventListeners (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:209:9) | |
| at HTMLUnknownElementImpl._dispatch (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:119:9) | |
| at HTMLUnknownElementImpl.dispatchEvent (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:82:17) | |
| at HTMLUnknownElementImpl.dispatchEvent (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\nodes\HTMLElement-impl.js:30:27) | |
| at HTMLUnknownElement.dispatchEvent (C:\Users\John\Desktop\stocked-client\node_modules\jsdom\lib\jsdom\living\generated\EventTarget.js:157:21) | |
| at Object.invokeGuardedCallbackDev (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:397:16) | |
| at invokeGuardedCallback (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:454:31) | |
| at beginWork$$1 (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:23217:7) | |
| at performUnitOfWork (C:\Users\John\Desktop\stocked-client\node_modules\react-dom\cjs\react-dom.development.js:22211:12) Error { message: 'Invalid token specified' } | |
| console.error node_modules/react-dom/cjs/react-dom.development.js:19814 | |
| The above error occurred in the <AddItemForm> component: | |
| in AddItemForm (created by Context.Consumer) | |
| in withRouter(AddItemForm) (at AddItemForm.test.js:49) | |
| in Router (created by BrowserRouter) | |
| in BrowserRouter (created by WrapperComponent) | |
| in WrapperComponent | |
| Consider adding an error boundary to your tree to customize error handling behavior. | |
| Visit https://fb.me/react-error-boundaries to learn more about error boundaries. | |
| ● AddItemForm Component › fires submit | |
| InvalidTokenError: Invalid token specifiedInvalidTokenError: | |
| 1 | import config from "../config"; | |
| > 2 | import jwtDecode from "jwt-decode"; | |
| | ^ | |
| 3 | | |
| 4 | let _timeoutId; | |
| 5 | const _TEN_SECONDS_IN_MS = 10000; | |
| at Object.<anonymous> (node_modules/jwt-decode/lib/index.js:9:31) | |
| at Object.<anonymous> (src/services/token-service.js:2:1) | |
| at Object.<anonymous> (src/services/inventory-api-service.js:2:1) | |
| at Object.<anonymous> (src/Components/AddItemForm/AddItemForm.js:6:1) | |
| at Object.<anonymous> (src/Components/AddItemForm/AddItemForm.test.js:5:1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment