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