Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2016-05-13 02:06:56 +0300
committerAnthony Fok <foka@debian.org>2016-06-30 08:08:55 +0300
commitca6b26fe65761e0a6f29d9f5480098de7b1eae68 (patch)
tree2fcccfd9e0e5a70496aa5d370f308c5876f01464 /commands/server_test.go
parent5572e3496b97ace93fea88cdbcf4dfce93e8adc2 (diff)
commands: Allow schema-less baseURL on command line
Fixes #1632
Diffstat (limited to 'commands/server_test.go')
-rw-r--r--commands/server_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/commands/server_test.go b/commands/server_test.go
index d41d630cb..92afe1928 100644
--- a/commands/server_test.go
+++ b/commands/server_test.go
@@ -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 {