Skip to content

Commit

Permalink
fix: get site url test
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed Jul 6, 2021
1 parent aa75728 commit dd1fad4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mailer/mailer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ func TestGetSiteURL(t *testing.T) {
{"", "https://test.example.com", "/templates/confirm.html", "", "https://test.example.com/templates/confirm.html"},
{"", "https://test.example.com/removedpath", "/templates/confirm.html", "", "https://test.example.com/templates/confirm.html"},
{"", "https://test.example.com/", "/trailingslash/", "", "https://test.example.com/trailingslash/"},
{"", "https://test.example.com", "f", "fragment", "https://test.example.com/f#fragment"},
{"https://test.example.com/admin", "https://test.example.com", "", "fragment", "https://test.example.com/admin#fragment"},
{"https://test.example.com/admin", "https://test.example.com", "f", "fragment", "https://test.example.com/f#fragment"},
{"", "https://test.example.com", "", "fragment", "https://test.example.com#fragment"},
{"", "https://test.example.com", "f", "fragment", "https://test.example.com/f?fragment"},
{"https://test.example.com/admin", "https://test.example.com", "", "fragment", "https://test.example.com/admin?fragment"},
{"https://test.example.com/admin", "https://test.example.com", "f", "fragment", "https://test.example.com/f?fragment"},
{"", "https://test.example.com", "", "fragment", "https://test.example.com?fragment"},
}

for _, c := range cases {
Expand Down

0 comments on commit dd1fad4

Please sign in to comment.