params should be listed in alphabetical order

This commit is contained in:
Bobby DeSimone 2019-04-08 20:29:41 -07:00
parent 6ddf3c5800
commit d6d10ceec8
No known key found for this signature in database
GPG Key ID: AEE4CF12FE86D07E
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func newConf(url string) *Config {
func TestAuthCodeURL(t *testing.T) {
conf := newConf("server")
url := conf.AuthCodeURL("foo", AccessTypeOffline, ApprovalForce)
const want = "server/auth?access_type=offline&prompt=consent&client_id=CLIENT_ID&redirect_uri=REDIRECT_URL&response_type=code&scope=scope1+scope2&state=foo"
const want = "server/auth?access_type=offline&client_id=CLIENT_ID&prompt=consent&redirect_uri=REDIRECT_URL&response_type=code&scope=scope1+scope2&state=foo"
if got := url; got != want {
t.Errorf("got auth code URL = %q; want %q", got, want)
}