Skip to content

Commit

Permalink
fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
developerkunal committed Aug 12, 2024
1 parent 0b59d8c commit 67121d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/cli/universal_login_customize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ func TestCheckOriginFunc(t *testing.T) {
testName: "Malformed Origin - Invalid URL",
request: &http.Request{
Header: http.Header{
"Origin": []string{"http://:80"}, // Incomplete URL with missing host
"Origin": []string{"http://:80"}, // Incomplete URL with missing host.
},
},
expected: false,
Expand All @@ -1325,7 +1325,7 @@ func TestCheckOriginFunc(t *testing.T) {
testName: "Malformed Origin - Invalid Scheme",
request: &http.Request{
Header: http.Header{
"Origin": []string{"ftp://example.com"}, // Unsupported scheme
"Origin": []string{"ftp://example.com"}, // Unsupported scheme.
},
},
expected: false,
Expand All @@ -1334,7 +1334,7 @@ func TestCheckOriginFunc(t *testing.T) {
testName: "Malformed Origin - Invalid URL Encoding",
request: &http.Request{
Header: http.Header{
"Origin": []string{"http://%zz%zz"}, // Invalid percent encoding
"Origin": []string{"http://%zz%zz"}, // Invalid percent encoding.
},
},
expected: false,
Expand All @@ -1343,7 +1343,7 @@ func TestCheckOriginFunc(t *testing.T) {
testName: "Empty Origin URL",
request: &http.Request{
Header: http.Header{
"Origin": []string{"http://"}, // Valid scheme but empty path
"Origin": []string{"http://"}, // Valid scheme but empty path.
},
},
expected: false,
Expand Down

0 comments on commit 67121d4

Please sign in to comment.