Skip to content

Commit af25c8c

Browse files
committed
chore: update test
1 parent 034bac0 commit af25c8c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/runtime-core/__tests__/components/Teleport.spec.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,14 @@ describe('renderer: teleport', () => {
274274
root,
275275
)
276276
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-->`)
281279
expect(serialize(commentNode)).toBe(`<!--comment in teleport-->`)
282280

283281
count.value = 1
284282
await nextTick()
285283
__DEV__ = true
286-
expect(serializeInner(root)).toMatchInlineSnapshot(`"<div>1</div>"`)
284+
expect(serializeInner(root)).toBe(`<div>1</div>`)
287285
expect(teleport!.children[0].el).toBe(commentNode)
288286
})
289287

0 commit comments

Comments
 (0)