File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
packages/runtime-vapor/__tests__/dom Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,22 @@ describe('api: template', () => {
40
40
expect ( nthChild ( root , 2 ) ) . toBe ( root . childNodes [ 2 ] )
41
41
expect ( next ( b ) ) . toBe ( root . childNodes [ 2 ] )
42
42
} )
43
+
44
+ describe ( 'tag closure omission' , ( ) => {
45
+ test ( 'final close tags' , ( ) => {
46
+ const t = template ( '<div><span>' )
47
+ const root = t ( ) as HTMLElement
48
+ const html = root . outerHTML
49
+
50
+ expect ( html ) . toBe ( '<div><span></span></div>' )
51
+ } )
52
+
53
+ test ( 'wrapped non-formatting tag closure' , ( ) => {
54
+ const t = template ( '<div><div><span></div><div>' )
55
+ const root = t ( ) as HTMLElement
56
+ const html = root . outerHTML
57
+
58
+ expect ( html ) . toBe ( '<div><div><span></span></div><div></div></div>' )
59
+ } )
60
+ } )
43
61
} )
You can’t perform that action at this time.
0 commit comments