Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeshong committed Mar 22, 2024
1 parent f1c2d47 commit b7b422e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,15 @@ func TestGetUserInfoByIdentifierEmailUpperCase(t *testing.T) {
})
require.Nil(t, err)

email := strings.ToUpper(RandomEmail)
createUserBody := passage.CreateUserBody{
Email: email,
Email: RandomEmail,
}

user, err := psg.CreateUser(createUserBody)
require.Nil(t, err)
assert.Equal(t, RandomEmail, user.Email)

userByIdentifier, err := psg.GetUserByIdentifier(email)
userByIdentifier, err := psg.GetUserByIdentifier(strings.ToUpper(RandomEmail))
require.Nil(t, err)

assert.Equal(t, user.ID, userByIdentifier.ID)
Expand Down

0 comments on commit b7b422e

Please sign in to comment.