mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
@@ -137,8 +137,6 @@ Scar,"a "dead cat",11
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestToMath(t *testing.T) {
|
func TestToMath(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
files := `
|
files := `
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
||||||
@@ -154,8 +152,6 @@ disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
|||||||
|
|
||||||
func TestToMathError(t *testing.T) {
|
func TestToMathError(t *testing.T) {
|
||||||
t.Run("Default", func(t *testing.T) {
|
t.Run("Default", func(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
files := `
|
files := `
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
||||||
@@ -169,8 +165,6 @@ disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("Disable ThrowOnError", func(t *testing.T) {
|
t.Run("Disable ThrowOnError", func(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
files := `
|
files := `
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
||||||
@@ -185,8 +179,6 @@ disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("Handle in template", func(t *testing.T) {
|
t.Run("Handle in template", func(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
files := `
|
files := `
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
||||||
@@ -207,8 +199,6 @@ disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestToMathBigAndManyExpressions(t *testing.T) {
|
func TestToMathBigAndManyExpressions(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
filesTemplate := `
|
filesTemplate := `
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
disableKinds = ['rss','section','sitemap','taxonomy','term']
|
disableKinds = ['rss','section','sitemap','taxonomy','term']
|
||||||
@@ -251,13 +241,9 @@ $$%s$$
|
|||||||
<span class="katex"><math
|
<span class="katex"><math
|
||||||
`)
|
`)
|
||||||
})
|
})
|
||||||
|
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestToMathMacros(t *testing.T) {
|
func TestToMathMacros(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
files := `
|
files := `
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
||||||
|
Reference in New Issue
Block a user