From 21e9868fe28c3a00eb49a4a2d98bc0aa5d302b0b Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Wed, 27 May 2026 21:54:00 -0700 Subject: [PATCH] tpl/tplimpl: Fix X shortcode test --- tpl/tplimpl/shortcodes_integration_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tpl/tplimpl/shortcodes_integration_test.go b/tpl/tplimpl/shortcodes_integration_test.go index 750c15edf..4e7d19bb7 100644 --- a/tpl/tplimpl/shortcodes_integration_test.go +++ b/tpl/tplimpl/shortcodes_integration_test.go @@ -485,7 +485,6 @@ Content: {{ .Content }} } func TestXShortcodes(t *testing.T) { - t.Skip("TODO: Fix broken test") t.Parallel() htesting.SkipSlowTestUnlessCI(t) @@ -511,12 +510,12 @@ title: p2 b := hugolib.Test(t, files) // Test x shortcode - want := `

Owl bet you'll lose this staring contest 🦉 pic.twitter.com/eJh4f2zncC

— San Diego Zoo Wildlife Alliance (@sandiegozoo) October 26, 2021
- ` + want := `

Owl bet you'll lose this staring contest 🦉 pic.twitter.com/eJh4f2zncC

— San Diego Zoo Wildlife Alliance (@sandiegozoo) October 26, 2021
+` b.AssertFileContent("public/p1/index.html", want) // Test x_simple shortcodes - wantSimple := "

Owl bet you'll lose this staring contest 🦉 pic.twitter.com/eJh4f2zncC

— San Diego Zoo Wildlife Alliance (@sandiegozoo) October 26, 2021
\n--" + wantSimple := "

Owl bet you'll lose this staring contest 🦉 pic.twitter.com/eJh4f2zncC

— San Diego Zoo Wildlife Alliance (@sandiegozoo) October 26, 2021
\n--" b.AssertFileContent("public/p2/index.html", wantSimple) // Test privacy.x.simple