get the test working

This commit is contained in:
Moriz Wahl 2022-01-10 10:45:41 +01:00
parent 58690e54e5
commit fd409252cb
2 changed files with 6 additions and 6 deletions

View File

@ -28,6 +28,9 @@ const createMockObject = (comingFrom) => {
optin: '123', optin: '123',
comingFrom, comingFrom,
}, },
path: {
includes: (t) => t,
},
}, },
$toasted: { $toasted: {
global: { global: {

View File

@ -95,15 +95,12 @@ export default {
this.$router.push('/thx/reset') this.$router.push('/thx/reset')
}) })
.catch((error) => { .catch((error) => {
if (error.message.includes('Code is older than 10 minutes')) { this.$toasted.global.error(error.message)
this.$toasted.global.error(error.message) if (error.message.includes('Code is older than 10 minutes'))
this.$router.push('/password/reset') this.$router.push('/password/reset')
} else {
this.$toasted.global.error(error.message)
}
}) })
}, },
setDisplaySetup(from) { setDisplaySetup() {
if (this.$route.path.includes('checkEmail')) { if (this.$route.path.includes('checkEmail')) {
this.displaySetup = textFields.checkEmail this.displaySetup = textFields.checkEmail
} }