mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-10 13:26:42 +10:00
17 lines
281 B
Go
17 lines
281 B
Go
package oauth2
|
|
|
|
import (
|
|
. "github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func Test_ProviderRegistration(t *testing.T) {
|
|
github, exist := GetProvider("github")
|
|
NotNil(t, github)
|
|
True(t, exist)
|
|
|
|
list := ProviderList()
|
|
Equal(t, 1, len(list))
|
|
Equal(t, "github", list[0])
|
|
}
|