]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: fix dts tests for 1ccecc0
authorEvan You <yyx990803@gmail.com>
Sun, 26 Jan 2020 03:21:06 +0000 (22:21 -0500)
committerEvan You <yyx990803@gmail.com>
Mon, 27 Jan 2020 21:00:17 +0000 (16:00 -0500)
test-dts/defineComponent.test-d.tsx

index a6393dd15ba1974e61743435e1d51e9cbf3e1895..417df9d1a5a89ffd4923c907a3099ba37a426822 100644 (file)
@@ -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() {
@@ -263,7 +263,7 @@ describe('compatibility w/ createApp', () => {
       }
     }
   })
-  createApp().mount(comp3, '#hello')
+  createApp(comp3).mount('#hello')
 })
 
 describe('defineComponent', () => {