Skip to content

Commit 03830ff

Browse files
committed
fix(test): remove unused getRedisKey mock from LoginController tests
1 parent c71fc06 commit 03830ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/server/modules/auth/__tests__/LoginController.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ describe('LoginController', () => {
116116
const mailJobFailure = jest.fn()
117117
const mailJobSuccess = jest.fn()
118118

119-
const getRedisKey = jest.fn()
120119
const deleteOtpByEmail = jest.fn()
121120
const setOtpForEmail = jest.fn()
122121
const getOtpForEmail = jest.fn()
@@ -125,7 +124,7 @@ describe('LoginController', () => {
125124
const authService = new AuthService(
126125
{ hash, compare },
127126
{ mailOTP, initMailer, mailJobFailure, mailJobSuccess },
128-
{ getRedisKey, deleteOtpByEmail, setOtpForEmail, getOtpForEmail },
127+
{ deleteOtpByEmail, setOtpForEmail, getOtpForEmail },
129128
new UserRepository(new UserMapper(urlMapper), urlMapper),
130129
)
131130
const controller = new LoginController(authService)
@@ -202,7 +201,6 @@ describe('LoginController', () => {
202201
const mailJobFailure = jest.fn()
203202
const mailJobSuccess = jest.fn()
204203

205-
const getRedisKey = jest.fn()
206204
const deleteOtpByEmail = jest.fn()
207205
const setOtpForEmail = jest.fn()
208206
const getOtpForEmail = jest.fn()
@@ -221,7 +219,7 @@ describe('LoginController', () => {
221219
const authService = new AuthService(
222220
{ hash, compare },
223221
{ mailOTP, initMailer, mailJobFailure, mailJobSuccess },
224-
{ getRedisKey, deleteOtpByEmail, setOtpForEmail, getOtpForEmail },
222+
{ deleteOtpByEmail, setOtpForEmail, getOtpForEmail },
225223
userRepository,
226224
)
227225

0 commit comments

Comments
 (0)