Merge pull request #1152 from trheyi/main
Fix formatting in OAuth authorization test for improved readability
This commit is contained in:
commit
b251d507dc
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ func TestUserOAuthAuthorizationURLParameters(t *testing.T) {
|
||||||
// Parse the authorization URL and check parameters
|
// Parse the authorization URL and check parameters
|
||||||
parsedURL, err := url.Parse(authURLStr)
|
parsedURL, err := url.Parse(authURLStr)
|
||||||
assert.NoError(t, err, "Authorization URL should be valid")
|
assert.NoError(t, err, "Authorization URL should be valid")
|
||||||
|
|
||||||
// Check if redirect_uri parameter matches
|
// Check if redirect_uri parameter matches
|
||||||
redirectURI := parsedURL.Query().Get("redirect_uri")
|
redirectURI := parsedURL.Query().Get("redirect_uri")
|
||||||
assert.Equal(t, tc.redirectURI, redirectURI, "Authorization URL should contain custom redirect_uri")
|
assert.Equal(t, tc.redirectURI, redirectURI, "Authorization URL should contain custom redirect_uri")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue