|
|
@ -19,7 +19,7 @@ Cypress.Commands.add('register', () => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
expect(response.status).to.eq(200)
|
|
|
|
expect(response.status).to.eq(201)
|
|
|
|
// user is also logged in after registering
|
|
|
|
// user is also logged in after registering
|
|
|
|
// so we can just save token
|
|
|
|
// so we can just save token
|
|
|
|
window.localStorage.setItem('jwtToken', response.body.user.token)
|
|
|
|
window.localStorage.setItem('jwtToken', response.body.user.token)
|
|
|
|