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
@@ -55,6 +55,10 @@ disabled copy:
}
```
```fixit
🎉🥚 in development mode!
```
## JSON Code
```json {enable=false}
+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 -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20251014072524-fa94e698" -}}
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20251014082535-5c74d431" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}