fix a couple of the tests

This commit is contained in:
Joe Harlow
2017-08-10 14:49:23 +01:00
parent 0c402a7607
commit f65c88ce5c
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -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)
}
+6 -1
View File
@@ -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])
}