chore(user-emails): fix tests

This commit is contained in:
Alessandro Magionami
2024-07-04 13:23:32 +02:00
parent e080376639
commit 09ddbde679
2 changed files with 3 additions and 3 deletions
@@ -5,7 +5,7 @@ import { expect } from 'chai'
import { getUserByEmail } from '../../repositories/users'
import { UserRecord } from '../../helpers/types'
describe.only('Core @user-emails', () => {
describe('Core @user-emails', () => {
before(async () => {
await beforeEachContext()
})
@@ -29,7 +29,7 @@ describe.only('Core @user-emails', () => {
it('should return user merged with user-email', async () => {
await createUser({
name: 'John Doe',
email: 'test@example.org',
email: 'test1@example.org',
password: 'sn3aky-1337-b1m'
})
@@ -23,7 +23,7 @@ import { EmailSendingServiceMock } from '@/test/mocks/global'
const mailerMock = EmailSendingServiceMock
const cleanup = async () => {
await truncateTables([Users.name, EmailVerifications.name])
await truncateTables([Users.name, EmailVerifications.name, 'user_emails'])
}
describe('Email verifications @emails', () => {