test: update JSON Viewer Test cases

This commit is contained in:
Cell
2025-10-14 16:25:34 +08:00
parent 5c74d4318a
commit 486e8758ac
3 changed files with 6 additions and 5 deletions
+1 -4
View File
@@ -13,8 +13,5 @@ Don't worry, the easter egg will only be triggered in development mode.
| dict "FixIt"
| jsonify (dict "prefix" " " "indent" " ")
-}}
{{- printf "```json {title=\"🧐 Oh, you found a FixIt easter egg 🥚~\"}\n%s\n```" $FixIt | $.Page.RenderString -}}
{{- else -}}
{{- $result := transform.HighlightCodeBlock . -}}
{{- $result.Wrapped -}}
{{- printf "```json {title=\"🧐 Oh, you found a FixIt easter egg 🥚~\", expandDepth=2}\n%s\n```" $FixIt | $.Page.RenderString -}}
{{- end -}}