refactor: simplify suspense ssr + adjust behavior

This commit is contained in:
Evan You
2020-03-16 15:38:35 -04:00
parent eb5b32fead
commit 38f0269765
7 changed files with 131 additions and 223 deletions

View File

@@ -6,8 +6,11 @@ import {
nextTick,
defineComponent
} from '@vue/runtime-test'
import { mockWarn } from '@vue/shared'
describe('renderer: component', () => {
mockWarn()
test.todo('should work')
test.todo('shouldUpdateComponent')
@@ -40,6 +43,7 @@ describe('renderer: component', () => {
expect(b1).toBe(true)
expect(b2).toBe(true)
expect(b3).toBe('')
expect('type check failed for prop "b1"').toHaveBeenWarned()
})
})