feat: fix all cases for h and options type inference

This commit is contained in:
Evan You
2019-09-05 18:48:49 -04:00
parent 6c7cbb0dc9
commit 94a05561f8
9 changed files with 83 additions and 85 deletions

View File

@@ -16,7 +16,7 @@ import {
describe('api: setup context', () => {
it('should expose return values to template render context', () => {
const Comp = {
const Comp = createComponent({
setup() {
return {
// ref should auto-unwrap
@@ -30,7 +30,7 @@ describe('api: setup context', () => {
render() {
return `${this.ref} ${this.object.msg} ${this.value}`
}
}
})
expect(renderToString(h(Comp))).toMatch(`foo bar baz`)
})