Skip to content

Commit

Permalink
added another test for default path
Browse files Browse the repository at this point in the history
  • Loading branch information
avatus authored and github-actions committed Jul 1, 2022
1 parent e9577ed commit 341ad99
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/web/app/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ func TestHasName(t *testing.T) {
expectedURL: "https://proxy.com/web/launch/app1.proxy.com%3Fpath=/foo",
hasName: true,
},
{
desc: "OK - adds root path",
addrs: []string{"proxy.com"},
reqURL: "https://app1.proxy.com/",
expectedURL: "https://proxy.com/web/launch/app1.proxy.com%3Fpath=/",
hasName: true,
},
} {
t.Run(test.desc, func(t *testing.T) {
req, err := http.NewRequest(http.MethodGet, test.reqURL, nil)
Expand Down

0 comments on commit 341ad99

Please sign in to comment.