Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package connect |
||
2 | |||
3 | import ( |
||
4 | "testing" |
||
5 | |||
6 | "github.com/stretchr/testify/require" |
||
7 | "golang.org/x/oauth2" |
||
8 | ) |
||
9 | |||
10 | func Test_Endpoint(t *testing.T) { |
||
11 | ept := OauthEndpoint() |
||
12 | require.Equal(t, ept.AuthURL, authURL) |
||
13 | require.Equal(t, ept.AuthStyle, oauth2.AuthStyleAutoDetect) |
||
14 | require.Equal(t, ept.TokenURL, tokensURL) |
||
15 | } |
||
16 |