Skip to content
Snippets Groups Projects
Verified Commit fd417169 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: add test case

parent 24808a2c
No related branches found
Tags v1.18.3
No related merge requests found
......@@ -57,6 +57,14 @@ func TestProcessHtml(t *testing.T) {
expected string
data map[any]any
}{
{
html: `<p><span id="1425" data-replace-self="path:text">dummy</span></p>`,
hasErrors: false,
expected: `<p>new text</p>`,
data: map[any]any{
"text": "new text",
},
},
{
html: `<!DOCTYPE html><html lang="en" data-attributes="lang path:lang"><head><body>`,
hasErrors: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment