Skip to content

Commit 1ecf6c4

Browse files
committed
Expand test cases for schem case sensitivity
This commit ensures that `HTTPS` and `https` are treated the same
1 parent 56c6f10 commit 1ecf6c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/browser/browser_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ func TestBrowse(t *testing.T) {
4747
launcher: fmt.Sprintf("%q -test.run=TestHelperProcess -- explicit https", os.Args[0]),
4848
expected: "[explicit https https://github.com]",
4949
},
50+
{
51+
name: "Explicit `HTTPS` URL works",
52+
url: "HTTPS://github.com",
53+
launcher: fmt.Sprintf("%q -test.run=TestHelperProcess -- explicit HTTPS", os.Args[0]),
54+
expected: "[explicit HTTPS https://github.com]",
55+
},
5056
{
5157
name: "Explicit `vscode` URL works",
5258
url: "vscode:extension/GitHub.copilot",

0 commit comments

Comments
 (0)