From fe26db7221ae5fc889735715c2e4a8c321994377 Mon Sep 17 00:00:00 2001 From: Robin Chow Date: Tue, 16 Jan 2024 09:26:54 -0800 Subject: [PATCH] Added tests for `pre` updates --- tests/data/pre-nested-strong.html | 2 ++ tests/data/pre-nested-strong.json | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/data/pre-nested-strong.html create mode 100644 tests/data/pre-nested-strong.json diff --git a/tests/data/pre-nested-strong.html b/tests/data/pre-nested-strong.html new file mode 100644 index 0000000..35db1a3 --- /dev/null +++ b/tests/data/pre-nested-strong.html @@ -0,0 +1,2 @@ +
line1
+line2
\ No newline at end of file diff --git a/tests/data/pre-nested-strong.json b/tests/data/pre-nested-strong.json new file mode 100644 index 0000000..f5b3b5b --- /dev/null +++ b/tests/data/pre-nested-strong.json @@ -0,0 +1,14 @@ +[ + { + "text": "line1\nline2", + "runs": [ + { + "text": "line1\n" + }, + { + "text": "line2", + "bold": true + } + ] + } +]