File tree 1 file changed +4
-1
lines changed
packages/runtime-dom/__tests__
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ describe('defineCustomElement', () => {
104
104
} ,
105
105
} )
106
106
const app = createApp ( containerComp )
107
+ const container = document . createElement ( 'div' )
108
+ document . body . appendChild ( container )
107
109
app . mount ( container )
108
110
const myInputEl = container . querySelector ( 'my-el-input' ) !
109
111
const inputEl = myInputEl . shadowRoot ! . querySelector ( 'input' ) !
@@ -115,7 +117,6 @@ describe('defineCustomElement', () => {
115
117
myInputEl . removeAttribute ( 'value' )
116
118
await nextTick ( )
117
119
expect ( inputEl . value ) . toBe ( '' )
118
- app . unmount ( )
119
120
} )
120
121
121
122
test ( 'should not unmount on move' , async ( ) => {
@@ -1188,6 +1189,8 @@ describe('defineCustomElement', () => {
1188
1189
} ,
1189
1190
} ) ,
1190
1191
)
1192
+ const container = document . createElement ( 'div' )
1193
+ document . body . appendChild ( container )
1191
1194
createApp ( {
1192
1195
render ( ) {
1193
1196
return h ( 'div' , [
You can’t perform that action at this time.
0 commit comments