diff --git a/tests/fixtures/user.fixture.js b/tests/fixtures/user.fixture.js index c678b944..ba980262 100644 --- a/tests/fixtures/user.fixture.js +++ b/tests/fixtures/user.fixture.js @@ -13,6 +13,7 @@ const userOne = { email: faker.internet.email().toLowerCase(), password, role: 'user', + isEmailVerified: false, }; const userTwo = { @@ -21,6 +22,7 @@ const userTwo = { email: faker.internet.email().toLowerCase(), password, role: 'user', + isEmailVerified: false, }; const admin = { @@ -29,6 +31,7 @@ const admin = { email: faker.internet.email().toLowerCase(), password, role: 'admin', + isEmailVerified: false, }; const insertUsers = async (users) => { diff --git a/tests/integration/auth.test.js b/tests/integration/auth.test.js index 854f48ba..ab8abf74 100644 --- a/tests/integration/auth.test.js +++ b/tests/integration/auth.test.js @@ -97,7 +97,7 @@ describe('Auth routes', () => { name: userOne.name, email: userOne.email, role: userOne.role, - isEmailVerified: false, + isEmailVerified: userOne.isEmailVerified, }); expect(res.body.tokens).toEqual({ diff --git a/tests/integration/user.test.js b/tests/integration/user.test.js index f674bf07..279e4ef4 100644 --- a/tests/integration/user.test.js +++ b/tests/integration/user.test.js @@ -163,7 +163,7 @@ describe('User routes', () => { name: userOne.name, email: userOne.email, role: userOne.role, - isEmailVerified: false, + isEmailVerified: userOne.isEmailVerified, }); }); @@ -366,7 +366,7 @@ describe('User routes', () => { email: userOne.email, name: userOne.name, role: userOne.role, - isEmailVerified: false, + isEmailVerified: userOne.isEmailVerified, }); });