File tree 1 file changed +3
-5
lines changed
packages/runtime-core/__tests__/components
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -274,16 +274,14 @@ describe('renderer: teleport', () => {
274
274
root ,
275
275
)
276
276
const commentNode = teleport ! . children [ 0 ] . el
277
- expect ( serializeInner ( root ) ) . toMatchInlineSnapshot ( `"<div>0</div>"` )
278
- expect ( serializeInner ( target ) ) . toMatchInlineSnapshot (
279
- `"<!--comment in teleport-->"` ,
280
- )
277
+ expect ( serializeInner ( root ) ) . toBe ( `<div>0</div>` )
278
+ expect ( serializeInner ( target ) ) . toBe ( `<!--comment in teleport-->` )
281
279
expect ( serialize ( commentNode ) ) . toBe ( `<!--comment in teleport-->` )
282
280
283
281
count . value = 1
284
282
await nextTick ( )
285
283
__DEV__ = true
286
- expect ( serializeInner ( root ) ) . toMatchInlineSnapshot ( `" <div>1</div>" `)
284
+ expect ( serializeInner ( root ) ) . toBe ( ` <div>1</div>`)
287
285
expect ( teleport ! . children [ 0 ] . el ) . toBe ( commentNode )
288
286
} )
289
287
You can’t perform that action at this time.
0 commit comments