test: restructure

This commit is contained in:
Evan You 2019-08-29 16:56:31 -04:00
parent 10bbf52c09
commit 010e64c224
10 changed files with 22 additions and 11 deletions

View File

@ -0,0 +1,11 @@
describe('renderer: component', () => {
test.todo('should work')
test.todo('shouldUpdateComponent')
test.todo('componentProxy')
test.todo('componentProps')
test.todo('componentSlots')
})

View File

@ -3,7 +3,7 @@ import { createVNode } from '../src/vnode'
// Since h is a thin layer on top of createVNode, we are only testing its
// own logic here. Details of vnode creation is tested in vnode.spec.ts.
describe('vdom: h', () => {
describe('renderer: h', () => {
test('type only', () => {
expect(h('div')).toMatchObject(createVNode('div'))
})

View File

@ -1,6 +1,6 @@
// reference: https://github.com/vuejs/vue/blob/dev/test/unit/modules/vdom/patch/children.spec.js
describe('vdom: unkeyed children', () => {
describe('renderer: unkeyed children', () => {
test.todo('append')
test.todo('prepend')
@ -34,4 +34,4 @@ describe('vdom: unkeyed children', () => {
test.todo('should not de-opt when both head and tail change')
})
describe('vdom: keyed children', () => {})
describe('renderer: keyed children', () => {})

View File

@ -1,4 +1,4 @@
describe('vdom: element', () => {
describe('renderer: element', () => {
test.todo('with props')
test.todo('with direct text children')

View File

@ -13,7 +13,7 @@ import {
serializeInner
} from '@vue/runtime-test'
describe('vdom: fragment', () => {
describe('renderer: fragment', () => {
it('should allow returning multiple component root nodes', () => {
const App = {
render() {

View File

@ -0,0 +1,3 @@
describe('renderer: optimized mode', () => {
test.todo('should work')
})

View File

@ -0,0 +1,3 @@
describe('renderer: portal', () => {
test.todo('should work')
})

View File

@ -1,3 +0,0 @@
describe('vdom: component', () => {
test.todo('should work')
})

View File

@ -1,3 +0,0 @@
describe('vdom: optimized mode', () => {
test.todo('should work')
})