test: all tests passing!
This commit is contained in:
parent
bd1b06f1cc
commit
2ee60e0a03
@ -12,8 +12,7 @@ import {
|
|||||||
nextTick,
|
nextTick,
|
||||||
resetOps,
|
resetOps,
|
||||||
dumpOps,
|
dumpOps,
|
||||||
NodeOpTypes,
|
NodeOpTypes
|
||||||
renderInstance
|
|
||||||
} from '@vue/runtime-test'
|
} from '@vue/runtime-test'
|
||||||
|
|
||||||
describe('Fragments', () => {
|
describe('Fragments', () => {
|
||||||
@ -24,7 +23,7 @@ describe('Fragments', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const root = nodeOps.createElement('div')
|
const root = nodeOps.createElement('div')
|
||||||
await renderInstance(App)
|
await render(h(App), root)
|
||||||
expect(serialize(root)).toBe(`<div><div>one</div>two</div>`)
|
expect(serialize(root)).toBe(`<div><div>one</div>two</div>`)
|
||||||
expect(root.children.length).toBe(2)
|
expect(root.children.length).toBe(2)
|
||||||
expect(root.children[0]).toMatchObject({
|
expect(root.children[0]).toMatchObject({
|
||||||
|
Loading…
Reference in New Issue
Block a user