build: fix make fmt, reformat test sources (#234)

This commit is contained in:
Daniel Moran
2021-08-20 15:26:00 -04:00
committed by GitHub
parent 3a6dfe7102
commit c0103e7b1b
5 changed files with 39 additions and 36 deletions

View File

@ -24,9 +24,9 @@ func TestNormalize(t *testing.T) {
},
{
name: "github URL with extensions",
in: url.URL{Host: "github.com", Path: "/influxdata/community-templates/blob/master/github/github.yml"},
in: url.URL{Host: "github.com", Path: "/influxdata/community-templates/blob/master/github/github.yml"},
exts: []string{".yaml", ".yml", ".jsonnet", ".json"},
out: url.URL{Host: "raw.githubusercontent.com", Path: "/influxdata/community-templates/master/github/github.yml"},
out: url.URL{Host: "raw.githubusercontent.com", Path: "/influxdata/community-templates/master/github/github.yml"},
},
{
name: "other URL",