diff --git a/provider/providers_test.go b/provider/providers_test.go index 5923cf01..8c2a5a48 100644 --- a/provider/providers_test.go +++ b/provider/providers_test.go @@ -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": "test@email.com"} + 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: "test@email.com", + assert.Equal(t, token.User{Name: "test_user", ID: "discord_9b472605c1318483fb4b88f9acf22cdd4219f9a0", Picture: "https://cdn.discordapp.com/avatars/248533295981532/374384984773.webp"}, user, "got %+v", user) })