aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_url_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-12-02 13:23:25 +0100
committerBjørn Erik Pedersen <[email protected]>2020-12-03 13:12:58 +0100
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /hugolib/site_url_test.go
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
downloadhugo-d90e37e0c6e812f9913bf256c9c81aa05b7a08aa.tar.gz
hugo-d90e37e0c6e812f9913bf256c9c81aa05b7a08aa.zip
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r--hugolib/site_url_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go
index c51285eb4..d668095b9 100644
--- a/hugolib/site_url_test.go
+++ b/hugolib/site_url_test.go
@@ -15,13 +15,12 @@ package hugolib
import (
"fmt"
+ "html/template"
"path/filepath"
"testing"
"github.com/gohugoio/hugo/resources/page"
- "html/template"
-
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/deps"
)
@@ -52,7 +51,8 @@ func TestShouldNotAddTrailingSlashToBaseURL(t *testing.T) {
{"http://base.com/", "http://base.com/"},
{"http://base.com/sub/", "http://base.com/sub/"},
{"http://base.com/sub", "http://base.com/sub"},
- {"http://base.com", "http://base.com"}} {
+ {"http://base.com", "http://base.com"},
+ } {
cfg, fs := newTestCfg()
cfg.Set("baseURL", this.in)
@@ -184,5 +184,4 @@ Do not go gentle into that good night.
c.Assert(sect1.RelPermalink(), qt.Equals, "/ss1/")
th.assertFileContent(filepath.Join("public", "ss1", "index.html"), "P1|URL: /ss1/|Next: /ss1/page/2/")
th.assertFileContent(filepath.Join("public", "ss1", "page", "2", "index.html"), "P2|URL: /ss1/page/2/|Next: /ss1/page/3/")
-
}