Skip to content

Commit

Permalink
bug: (#271) test
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Feb 26, 2023
1 parent 1083c8e commit 9ce9e84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ class ResetStudentPasswordUseCaseTests {
given(queryUserPort.queryUserByAccountId(requestStub.accountId))
.willReturn(userStub)

given(queryStudentPort.queryStudentById(studentStub.id))
.willReturn(studentStub)

given(checkUserAuthority.execute(userStub.id))
.willReturn(Authority.MANAGER)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ class SignUpUseCaseTests {
given(querySchoolPort.querySchoolByCode(code))
.willReturn(schoolStub)

given(queryAuthCodePort.queryAuthCodeByEmail(email))
.willReturn(authCodeStub)

given(queryUserPort.existsUserByEmail(email))
.willReturn(true)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data class AuthCode(
}

fun validateAuthCode(code: String) {
if (this.code == code) {
if (this.code != code) {
throw AuthCodeMismatchException
}
}
Expand Down

0 comments on commit 9ce9e84

Please sign in to comment.