Skip to content

Commit

Permalink
fixing tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Sep 25, 2024
1 parent a5c7570 commit 4f6303f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ func TestVerifyAccountHandler(t *testing.T) {
// get the verification code from the email
mailBody, err = testMailService.FindEmail(context.Background(), testEmail)
c.Assert(err, qt.IsNil)
mailCode = strings.TrimPrefix(mailBody, VerificationCodeTextBody)
mailCode = mailCodeRgx.FindStringSubmatch(mailBody)
// verify the user
verification = mustMarshal(&UserVerification{
Email: testEmail,
Code: mailCode,
Code: mailCode[1],
})
req, err = http.NewRequest(http.MethodPost, testURL(verifyUserEndpoint), bytes.NewBuffer(verification))
c.Assert(err, qt.IsNil)
Expand Down

0 comments on commit 4f6303f

Please sign in to comment.