mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
parent
5572e3496b
commit
ca6b26fe65
2 changed files with 29 additions and 21 deletions
|
@ -36,10 +36,11 @@ func TestFixURL(t *testing.T) {
|
|||
{"Basic subdir", "", "http://foo.com/bar", true, 1313, "http://localhost:1313/bar/"},
|
||||
{"Basic production", "http://foo.com", "http://foo.com", false, 80, "http://foo.com/"},
|
||||
{"Production subdir", "http://foo.com/bar", "http://foo.com/bar", false, 80, "http://foo.com/bar/"},
|
||||
{"No http", "", "foo.com", true, 1313, "http://localhost:1313/"},
|
||||
{"Override configured port", "", "foo.com:2020", true, 1313, "http://localhost:1313/"},
|
||||
{"No http production", "foo.com", "foo.com", false, 80, "http://foo.com/"},
|
||||
{"No http production with port", "foo.com", "foo.com", true, 2020, "http://foo.com:2020/"},
|
||||
{"No http", "", "foo.com", true, 1313, "//localhost:1313/"},
|
||||
{"Override configured port", "", "foo.com:2020", true, 1313, "//localhost:1313/"},
|
||||
{"No http production", "foo.com", "foo.com", false, 80, "//foo.com/"},
|
||||
{"No http production with port", "foo.com", "foo.com", true, 2020, "//foo.com:2020/"},
|
||||
{"No config", "", "", true, 1313, "//localhost:1313/"},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue