fix mistake in cypress config

This commit is contained in:
mahula 2023-03-08 13:46:53 +01:00
parent 874fbe9540
commit 0d822d4240

View File

@ -2,7 +2,7 @@ import { defineConfig } from 'cypress'
import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor'
import browserify from '@badeball/cypress-cucumber-preprocessor/browserify'
let resetPasswordLink: string
let emailLink: string
async function setupNodeEvents(
on: Cypress.PluginEvents,
@ -18,11 +18,8 @@ async function setupNodeEvents(
)
on('task', {
setResetPasswordLink: (val) => {
return (resetPasswordLink = val)
},
getResetPasswordLink: () => {
return resetPasswordLink
setEmailLink: (link: string) => {
return (emailLink = link)
},
})