test: improve tests and typing for runtime-core (#100)

* test: add test case for declaring Array prop type with constructor casting in `createComponent`

* test: add test case for `setup(props)` with explicit props declaration
This commit is contained in:
Carlos Rodrigues
2019-10-05 20:37:55 +01:00
committed by Evan You
parent f48a2ffc76
commit 8133b3867a
4 changed files with 46 additions and 6 deletions

View File

@@ -517,7 +517,7 @@ describe('renderer: suspense', () => {
const Comp = {
setup() {
const error = ref<any>(null)
const error = ref<Error | null>(null)
onErrorCaptured(e => {
error.value = e
return true