import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { User } from '../../../../shared/models/users'
+import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
const expect = chai.expect
})
it('Should not allow login for user with unverified email', async function () {
- const resLogin = await login(server.url, server.client, user1, 400)
- expect(resLogin.body.error).to.contain('User email is not verified.')
+ const resLogin = await login(server.url, server.client, user1, HttpStatusCode.BAD_REQUEST_400)
+ expect(resLogin.body.detail).to.contain('User email is not verified.')
})
it('Should verify the user via email and allow login', async function () {
})
it('Should be able to change the user email', async function () {
+ this.timeout(10000)
+
let updateVerificationString: string
{