Просмотр исходного кода

test: reformat defineComponent dts test (#631)

Cédric Exbrayat 6 лет назад
Родитель
Сommit
2f6ec45d10
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      test-dts/defineComponent.test-d.tsx

+ 5 - 4
test-dts/defineComponent.test-d.tsx

@@ -261,9 +261,10 @@ describe('compatibility w/ createApp', () => {
 })
 })
 
 
 describe('defineComponent', () => {
 describe('defineComponent', () => {
-  test('should accept components defined with defineComponent')
-  const comp = defineComponent({})
-  defineComponent({
-    components: { comp }
+  test('should accept components defined with defineComponent', () => {
+    const comp = defineComponent({})
+    defineComponent({
+      components: { comp }
+    })
   })
   })
 })
 })