Skip to content

Commit 80e973e

Browse files
committed
Remove test with deprecated path usage
This now creates a warning and flaky CI tests.
1 parent debf3c5 commit 80e973e

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

‎hugolib/params_test.go‎

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -57,43 +57,6 @@ Summary: {{ .Summary }}|
5757
)
5858
}
5959

60-
func TestFrontMatterParamsPath(t *testing.T) {
61-
t.Parallel()
62-
63-
files := `
64-
-- hugo.toml --
65-
baseURL = "https://example.org/"
66-
disableKinds = ["taxonomy", "term"]
67-
68-
-- content/p1.md --
69-
---
70-
title: "P1"
71-
date: 2019-08-07
72-
path: "/a/b/c"
73-
slug: "s1"
74-
---
75-
-- content/mysection/_index.md --
76-
---
77-
title: "My Section"
78-
date: 2022-08-07
79-
path: "/a/b"
80-
---
81-
-- layouts/index.html --
82-
RegularPages: {{ range site.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ .Title }}|{{ .Date.Format "2006-02-01" }}| Slug: {{ .Params.slug }}|{{ end }}$
83-
Sections: {{ range site.Sections }}{{ .Path }}|{{ .RelPermalink }}|{{ .Title }}|{{ .Date.Format "2006-02-01" }}| Slug: {{ .Params.slug }}|{{ end }}$
84-
{{ $ab := site.GetPage "a/b" }}
85-
a/b pages: {{ range $ab.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ end }}$
86-
`
87-
88-
b := Test(t, files)
89-
90-
b.AssertFileContent("public/index.html",
91-
"RegularPages: /a/b/c|/a/b/s1/|P1|2019-07-08| Slug: s1|$",
92-
"Sections: /a|/a/|As",
93-
"a/b pages: /a/b/c|/a/b/s1/|$",
94-
)
95-
}
96-
9760
func TestFrontMatterParamsLangNoCascade(t *testing.T) {
9861
t.Parallel()
9962

0 commit comments

Comments
 (0)