Skip to content

Commit

Permalink
test: fix dts tests for 1ccecc0
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 27, 2020
1 parent 25a0d4a commit 8c892e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-dts/defineComponent.test-d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ describe('type inference w/ options API', () => {

describe('compatibility w/ createApp', () => {
const comp = defineComponent({})
createApp().mount(comp, '#hello')
createApp(comp).mount('#hello')

const comp2 = defineComponent({
props: { foo: String }
})
createApp().mount(comp2, '#hello')
createApp(comp2).mount('#hello')

const comp3 = defineComponent({
setup() {
Expand All @@ -263,7 +263,7 @@ describe('compatibility w/ createApp', () => {
}
}
})
createApp().mount(comp3, '#hello')
createApp(comp3).mount('#hello')
})

describe('defineComponent', () => {
Expand Down

0 comments on commit 8c892e0

Please sign in to comment.