mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-09 04:46:29 +10:00
fix a couple of the tests
This commit is contained in:
@@ -48,6 +48,6 @@ func Test_Google_getUserInfo(t *testing.T) {
|
||||
NoError(t, err)
|
||||
Equal(t, "test@gmail.com", u.Sub)
|
||||
Equal(t, "test@gmail.com", u.Email)
|
||||
Equal(t, "testy test", u.Name)
|
||||
Equal(t, "Testy Test", u.Name)
|
||||
Equal(t, googleTestUserResponse, rawJSON)
|
||||
}
|
||||
|
||||
@@ -10,7 +10,12 @@ func Test_ProviderRegistration(t *testing.T) {
|
||||
NotNil(t, github)
|
||||
True(t, exist)
|
||||
|
||||
google, exist := GetProvider("google")
|
||||
NotNil(t, google)
|
||||
True(t, exist)
|
||||
|
||||
list := ProviderList()
|
||||
Equal(t, 1, len(list))
|
||||
Equal(t, 2, len(list))
|
||||
Equal(t, "github", list[0])
|
||||
Equal(t, "google", list[1])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user