Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NATHAN-J-MALLISONs-MacBook-Pro:ctms-frontend natemallison$ yarn test:unit
- yarn run v1.7.0
- $ vue-cli-service test:unit
- FAIL tests/unit/ResetPassword.spec.js
- ● Console
- console.error node_modules/vuex/dist/vuex.common.js:916
- [vuex] module namespace not found in mapActions(): auth/
- ● ResetPassword.vue › Can reset a password successfully
- TypeError: Cannot read property 'then' of undefined
- 76 | t.resetStatus = "default";
- 77 | t.validationErrors = {};
- > 78 | t.resetPassword(t.data)
- | ^
- 79 | .then(() => {
- 80 | t.$router.push({ name: "login" });
- 81 | })
- at VueComponent.updatePassword (src/views/ResetPassword.vue:78:1)
- at Object.<anonymous> (tests/unit/ResetPassword.spec.js:62:16)
- PASS tests/unit/ListTable.spec.js
- PASS tests/unit/Login.spec.js
- PASS tests/unit/ForgotPassword.spec.js
- Test Suites: 1 failed, 3 passed, 4 total
- Tests: 1 failed, 4 skipped, 16 passed, 21 total
- Snapshots: 0 total
- Time: 5.721s
- Ran all test suites.
- ERROR jest exited with code 1.
- error Command failed with exit code 1.
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement