From a6ae640e2ac88ed100b1b5736efd07ab2b184a4a Mon Sep 17 00:00:00 2001 From: badolamgk Date: Sun, 6 Oct 2024 00:41:27 +0530 Subject: [PATCH] fix: changes involving email removal in test script --- v2/provider/providers_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/provider/providers_test.go b/v2/provider/providers_test.go index cfdc0b6..f3b91a8 100644 --- a/v2/provider/providers_test.go +++ b/v2/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) })