summaryrefslogtreecommitdiffstats
path: root/commands/server_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-17 10:35:01 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-17 10:35:01 +0200
commit6c35a1a9eacf2aa86a11ecd31c4022ce330b2f16 (patch)
treec390750370d67e646446bdc64c22b430aeb1292c /commands/server_test.go
parent363bc907c0ab4b6989bada2e1ffca4ef17d7b8a4 (diff)
Revert "Fix PostProcess regression for hugo server"
Diffstat (limited to 'commands/server_test.go')
-rw-r--r--commands/server_test.go46
1 files changed, 10 insertions, 36 deletions
diff --git a/commands/server_test.go b/commands/server_test.go
index c2aa0dfd5..ea50afd94 100644
--- a/commands/server_test.go
+++ b/commands/server_test.go
@@ -31,6 +31,16 @@ import (
qt "github.com/frankban/quicktest"
)
+func TestServer(t *testing.T) {
+ c := qt.New(t)
+
+ r := runServerTest(c, true, "")
+
+ c.Assert(r.err, qt.IsNil)
+ c.Assert(r.homeContent, qt.Contains, "List: Hugo Commands")
+ c.Assert(r.homeContent, qt.Contains, "Environment: development")
+}
+
// Issue 9518
func TestServerPanicOnConfigError(t *testing.T) {
c := qt.New(t)
@@ -91,42 +101,6 @@ baseURL="https://example.org"
}
-func TestServerBugs(t *testing.T) {
- c := qt.New(t)
-
- for _, test := range []struct {
- name string
- flag string
- assert func(c *qt.C, r serverTestResult)
- }{
- // Issue 9788
- {"PostProcess, memory", "", func(c *qt.C, r serverTestResult) {
- c.Assert(r.err, qt.IsNil)
- c.Assert(r.homeContent, qt.Contains, "PostProcess: /foo.min.css")
- }},
- {"PostProcess, disk", "--renderToDisk", func(c *qt.C, r serverTestResult) {
- c.Assert(r.err, qt.IsNil)
- c.Assert(r.homeContent, qt.Contains, "PostProcess: /foo.min.css")
- }},
- } {
- c.Run(test.name, func(c *qt.C) {
- config := `
-baseURL="https://example.org"
-`
-
- var args []string
- if test.flag != "" {
- args = strings.Split(test.flag, "=")
- }
- r := runServerTest(c, true, config, args...)
- test.assert(c, r)
-
- })
-
- }
-
-}
-
type serverTestResult struct {
err error
homeContent string