Skip to content

Commit

Permalink
fix: changes involving email removal in test script
Browse files Browse the repository at this point in the history
  • Loading branch information
badolamgk committed Oct 5, 2024
1 parent 53f14a0 commit a6ae640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/provider/providers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ func TestProviders_NewDiscord(t *testing.T) {
assert.Equal(t, "discord", r.Name())

t.Run("With all data", func(t *testing.T) {
udata := UserData{"id": "248533295981532", "username": "test_user", "avatar": "374384984773", "email": "[email protected]"}
udata := UserData{"id": "248533295981532", "username": "test_user", "avatar": "374384984773"}
user := r.mapUser(udata, nil)
assert.Equal(t, token.User{Name: "test_user", ID: "discord_9b472605c1318483fb4b88f9acf22cdd4219f9a0", Email: "[email protected]",
assert.Equal(t, token.User{Name: "test_user", ID: "discord_9b472605c1318483fb4b88f9acf22cdd4219f9a0",
Picture: "https://cdn.discordapp.com/avatars/248533295981532/374384984773.webp"}, user, "got %+v", user)
})

Expand Down

0 comments on commit a6ae640

Please sign in to comment.