6 . "github.com/onsi/gomega"
9func TestNewFacebookProvider(t *testing.T) {
12 // Test that defaults are set when calling for a new provider with nothing set
13 providerData := NewFacebookProvider(&ProviderData{}).Data()
14 g.Expect(providerData.ProviderName).To(Equal("Facebook"))
15 g.Expect(providerData.LoginURL.String()).To(Equal("https://www.facebook.com/v2.5/dialog/oauth"))
16 g.Expect(providerData.RedeemURL.String()).To(Equal("https://graph.facebook.com/v2.5/oauth/access_token"))
17 g.Expect(providerData.ProfileURL.String()).To(Equal("https://graph.facebook.com/v2.5/me"))
18 g.Expect(providerData.ValidateURL.String()).To(Equal("https://graph.facebook.com/v2.5/me"))
19 g.Expect(providerData.Scope).To(Equal("public_profile email"))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list