Skip to content

Commit 4ef5720

Browse files
committed
hugolib: Remove test for deprecated future
1 parent 34e8378 commit 4ef5720

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

hugolib/params_test.go

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -94,44 +94,6 @@ a/b pages: {{ range $ab.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ end }}
9494
)
9595
}
9696

97-
func TestFrontMatterParamsLang(t *testing.T) {
98-
t.Parallel()
99-
100-
files := `
101-
-- hugo.toml --
102-
baseURL = "https://example.org/"
103-
disableKinds = ["taxonomy", "term"]
104-
defaultContentLanguage = "en"
105-
defaultContentLanguageInSubdir = true
106-
[languages]
107-
[languages.en]
108-
weight = 1
109-
[languages.nn]
110-
weight = 2
111-
-- content/p1.md --
112-
---
113-
title: "P1 nn"
114-
lang: "nn"
115-
---
116-
-- content/p2.md --
117-
---
118-
title: "P2"
119-
---
120-
-- layouts/index.html --
121-
RegularPages: {{ range site.RegularPages }}{{ .Path }}|{{ .RelPermalink }}|{{ .Title }}|{{ end }}$
122-
123-
`
124-
125-
b := Test(t, files)
126-
127-
b.AssertFileContent("public/en/index.html",
128-
"RegularPages: /p2|/en/p2/|P2|$",
129-
)
130-
b.AssertFileContent("public/nn/index.html",
131-
"RegularPages: /p1|/nn/p1/|P1 nn|$",
132-
)
133-
}
134-
13597
func TestFrontMatterTitleOverrideWarn(t *testing.T) {
13698
t.Parallel()
13799

0 commit comments

Comments
 (0)