Skip to content

Commit 5fe42f7

Browse files
committed
chore: add missing placeholder locations from test snapshots
1 parent 646e8ba commit 5fe42f7

File tree

19 files changed

+74
-33
lines changed

19 files changed

+74
-33
lines changed

src/__tests__/fixtures/complex/__snapshots__/complex.expected.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@
4545
│ ├─ closeTag(b)
4646
╰─ ╰─ tagName "app-hello"
4747
22╭─ -- ${data.name} some html - <b>bold</b>
48-
│ │ │ │││ │ │ ╰─ closeTag(app-hello)
49-
│ │ │ │││ │ ╰─ closeTag(b).value
50-
│ │ │ │││ ╰─ closeTag(b) "</b>"
51-
│ │ │ ││╰─ text "bold"
52-
│ │ │ │╰─ openTagEnd
53-
│ │ │ ╰─ tagName
54-
│ │ ╰─ text " some html - "
48+
│ │ │ │ │ │││ │ │ ╰─ closeTag(app-hello)
49+
│ │ │ │ │ │││ │ ╰─ closeTag(b).value
50+
│ │ │ │ │ │││ ╰─ closeTag(b) "</b>"
51+
│ │ │ │ │ ││╰─ text "bold"
52+
│ │ │ │ │ │╰─ openTagEnd
53+
│ │ │ │ │ ╰─ tagName
54+
│ │ │ │ ╰─ text " some html - "
55+
│ │ │ ╰─ placeholder:escape.value "data.name"
56+
│ │ ╰─ placeholder:escape "${data.name}"
5557
╰─ ╰─ openTagEnd
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
1╭─ -- ${data.name} some html - <b>bold</b>
2-
│ │ │││ │ ╰─ closeTag(b).value
3-
│ │ │││ ╰─ closeTag(b) "</b>"
4-
│ │ ││╰─ text "bold"
5-
│ │ │╰─ openTagEnd
6-
│ │ ╰─ tagName
7-
╰─ ╰─ text " some html - "
2+
│ │ │ │ │││ │ ╰─ closeTag(b).value
3+
│ │ │ │ │││ ╰─ closeTag(b) "</b>"
4+
│ │ │ │ ││╰─ text "bold"
5+
│ │ │ │ │╰─ openTagEnd
6+
│ │ │ │ ╰─ tagName
7+
│ │ │ ╰─ text " some html - "
8+
│ │ ╰─ placeholder:escape.value "data.name"
9+
╰─ ╰─ placeholder:escape "${data.name}"
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
1╰─ -- ${data.name}
1+
1╭─ -- ${data.name}
2+
│ │ ╰─ placeholder:escape.value "data.name"
3+
╰─ ╰─ placeholder:escape "${data.name}"

src/__tests__/fixtures/empty-closing-tag2/__snapshots__/empty-closing-tag2.expected.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
│ │ ╰─ tagName "li"
1212
╰─ ╰─ text "\n "
1313
3╭─ ${feature}
14+
│ │ │ ╰─ placeholder:escape.value "feature"
15+
│ │ ╰─ placeholder:escape "${feature}"
1416
╰─ ╰─ text "\n "
1517
4╭─ </li>
1618
│ │ │ ╰─ closeTag(li).value "li"

src/__tests__/fixtures/mixed-invalid/__snapshots__/mixed-invalid.expected.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
│ │ ╰─ tagName "span"
1717
╰─ ╰─ text "\n "
1818
4╭─ Hello ${data.name}!
19-
│ │ ╰─ text "!\n "
19+
│ │ │ │ ╰─ text "!\n "
20+
│ │ │ ╰─ placeholder:escape.value "data.name"
21+
│ │ ╰─ placeholder:escape "${data.name}"
2022
╰─ ╰─ text "\n Hello "
2123
5╭─ </span>
2224
│ │ ╰─ closeTag(span).value "span"

src/__tests__/fixtures/mixed/__snapshots__/mixed.expected.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
│ │ ╰─ tagName "span"
1717
╰─ ╰─ text "\n "
1818
4╭─ Hello ${data.name}!
19-
│ │ ╰─ text "!\n "
19+
│ │ │ │ ╰─ text "!\n "
20+
│ │ │ ╰─ placeholder:escape.value "data.name"
21+
│ │ ╰─ placeholder:escape "${data.name}"
2022
╰─ ╰─ text "\n Hello "
2123
5╭─ </span>
2224
│ │ ╰─ closeTag(span).value "span"

src/__tests__/fixtures/placeholder-backslash/__snapshots__/placeholder-backslash.expected.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
│ │╰─ openTagEnd
3232
╰─ ╰─ tagName
3333
8╭─ \\${test}
34+
│ │ │ ╰─ placeholder:escape.value "test"
35+
│ │ ╰─ placeholder:escape "${test}"
3436
╰─ ╰─ text "\n \\"
3537
9╭─ </b>
3638
│ │ ╰─ closeTag(b).value
@@ -49,6 +51,8 @@
4951
│ │╰─ openTagEnd
5052
╰─ ╰─ tagName
5153
14╭─ \\$!{test}
54+
│ │ │ ╰─ placeholder.value "test"
55+
│ │ ╰─ placeholder "$!{test}"
5256
╰─ ╰─ text "\n \\"
5357
15╭─ </d>
5458
│ │ ╰─ closeTag(d).value
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
1╭─ <div>Hello ${xyz}!</div>
2-
│ │ ││ ││ ╰─ closeTag(div).value "div"
3-
│ │ ││ │╰─ closeTag(div) "</div>"
4-
│ │ ││ ╰─ text
2+
│ │ ││ │ │ ││ ╰─ closeTag(div).value "div"
3+
│ │ ││ │ │ │╰─ closeTag(div) "</div>"
4+
│ │ ││ │ │ ╰─ text
5+
│ │ ││ │ ╰─ placeholder:escape.value "xyz"
6+
│ │ ││ ╰─ placeholder:escape "${xyz}"
57
│ │ │╰─ text "Hello "
68
│ │ ╰─ openTagEnd
79
╰─ ╰─ tagName "div"

src/__tests__/fixtures/placeholder-escape/__snapshots__/placeholder-escape.expected.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
│ │ ╰─ attrName "name"
66
╰─ ╰─ tagName "custom"
77
2╭─ Hello ${name}!
8-
│ │ ╰─ text "!\n"
8+
│ │ │ │ ╰─ text "!\n"
9+
│ │ │ ╰─ placeholder:escape.value "name"
10+
│ │ ╰─ placeholder:escape "${name}"
911
╰─ ╰─ text "\n Hello "
1012
3╭─ </custom>
1113
│ │ ╰─ closeTag(custom).value "custom"

src/__tests__/fixtures/placeholder-no-escape/__snapshots__/placeholder-no-escape.expected.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
│ │ ╰─ attrName "name"
66
╰─ ╰─ tagName "custom"
77
2╭─ Hello $!{name}!
8-
│ │ ╰─ text "!\n"
8+
│ │ │ │ ╰─ text "!\n"
9+
│ │ │ ╰─ placeholder.value "name"
10+
│ │ ╰─ placeholder "$!{name}"
911
╰─ ╰─ text "\n Hello "
1012
3╭─ </custom>
1113
│ │ ╰─ closeTag(custom).value "custom"

0 commit comments

Comments
 (0)