Skip to content

Commit d869e2f

Browse files
committed
Chore: improve coverage
1 parent 6ffd8b9 commit d869e2f

File tree

3 files changed

+9
-120
lines changed

3 files changed

+9
-120
lines changed

test/fixtures/ast/bogus-comments/ast.json

Lines changed: 7 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
"type": "VElement",
2525
"range": [
2626
0,
27-
114
27+
94
2828
],
2929
"loc": {
3030
"start": {
3131
"line": 1,
3232
"column": 0
3333
},
3434
"end": {
35-
"line": 7,
36-
"column": 11
35+
"line": 6,
36+
"column": 4
3737
}
3838
},
3939
"name": "template",
@@ -146,43 +146,9 @@
146146
}
147147
},
148148
"value": "\n "
149-
},
150-
{
151-
"type": "VText",
152-
"range": [
153-
102,
154-
103
155-
],
156-
"loc": {
157-
"start": {
158-
"line": 6,
159-
"column": 12
160-
},
161-
"end": {
162-
"line": 7,
163-
"column": 0
164-
}
165-
},
166-
"value": "\n"
167149
}
168150
],
169-
"endTag": {
170-
"type": "VEndTag",
171-
"range": [
172-
103,
173-
114
174-
],
175-
"loc": {
176-
"start": {
177-
"line": 7,
178-
"column": 0
179-
},
180-
"end": {
181-
"line": 7,
182-
"column": 11
183-
}
184-
}
185-
},
151+
"endTag": null,
186152
"variables": [],
187153
"tokens": [
188154
{
@@ -310,78 +276,6 @@
310276
}
311277
},
312278
"value": "\n "
313-
},
314-
{
315-
"type": "HTMLWhitespace",
316-
"range": [
317-
102,
318-
103
319-
],
320-
"loc": {
321-
"start": {
322-
"line": 6,
323-
"column": 12
324-
},
325-
"end": {
326-
"line": 7,
327-
"column": 0
328-
}
329-
},
330-
"value": "\n"
331-
},
332-
{
333-
"type": "HTMLEndTagOpen",
334-
"range": [
335-
103,
336-
113
337-
],
338-
"loc": {
339-
"start": {
340-
"line": 7,
341-
"column": 0
342-
},
343-
"end": {
344-
"line": 7,
345-
"column": 10
346-
}
347-
},
348-
"value": "template"
349-
},
350-
{
351-
"type": "HTMLTagClose",
352-
"range": [
353-
113,
354-
114
355-
],
356-
"loc": {
357-
"start": {
358-
"line": 7,
359-
"column": 10
360-
},
361-
"end": {
362-
"line": 7,
363-
"column": 11
364-
}
365-
},
366-
"value": ""
367-
},
368-
{
369-
"type": "HTMLWhitespace",
370-
"range": [
371-
114,
372-
115
373-
],
374-
"loc": {
375-
"start": {
376-
"line": 7,
377-
"column": 11
378-
},
379-
"end": {
380-
"line": 8,
381-
"column": 0
382-
}
383-
},
384-
"value": "\n"
385279
}
386280
],
387281
"comments": [
@@ -469,11 +363,11 @@
469363
"column": 4
470364
},
471365
"end": {
472-
"line": 6,
473-
"column": 12
366+
"line": 7,
367+
"column": 0
474368
}
475369
},
476-
"value": " ddd "
370+
"value": " ddd \n"
477371
}
478372
],
479373
"errors": [

test/fixtures/ast/bogus-comments/source.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
</ aaa>
44
<!DOCTYPE bbb>
55
<![CDATA[ ccc ]]>
6-
<! ddd >
7-
</template>
6+
<! ddd

test/fixtures/ast/bogus-comments/token-ranges.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
"\n ",
77
"\n ",
88
"\n ",
9-
"\n",
10-
"</template",
11-
">",
12-
"\n",
139
"<?xml version=\"1.0\"?>",
1410
"</ aaa>",
1511
"<!DOCTYPE bbb>",
1612
"<![CDATA[ ccc ]]>",
17-
"<! ddd >"
13+
"<! ddd \n"
1814
]

0 commit comments

Comments
 (0)