[#2762] added Yandex OAuth2 provider
Co-authored-by: Valentine <xb2w1z@gmail.com>
This commit is contained in:
@@ -198,4 +198,13 @@ func TestNewProviderByName(t *testing.T) {
|
||||
if _, ok := p.(*auth.VK); !ok {
|
||||
t.Error("Expected to be instance of *auth.VK")
|
||||
}
|
||||
|
||||
// yandex
|
||||
p, err = auth.NewProviderByName(auth.NameYandex)
|
||||
if err != nil {
|
||||
t.Errorf("Expected nil, got error %v", err)
|
||||
}
|
||||
if _, ok := p.(*auth.Yandex); !ok {
|
||||
t.Error("Expected to be instance of *auth.yandex")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user