]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: fix temp tests
authorEvan You <yyx990803@gmail.com>
Fri, 23 Aug 2019 19:32:19 +0000 (15:32 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 23 Aug 2019 19:32:19 +0000 (15:32 -0400)
packages/runtime-core/__tests__/apiInject.spec.ts
packages/runtime-core/__tests__/apiLifecycle.spec.ts
packages/runtime-core/__tests__/apiSetupContext.spec.ts
packages/runtime-core/__tests__/apiTemplateRef.spec.ts
packages/runtime-core/__tests__/apiWatch.spec.ts
packages/runtime-core/__tests__/h.spec.ts
packages/runtime-core/__tests__/vdomComponent.spec.ts
packages/runtime-core/__tests__/vdomOptimizedMode.spec.ts
packages/vue-compat/__tests__/compat.spec.ts

index bcb6110cd7632f91268509c6d505925e9b37bc23..a11163a6611f6085e4464ef50e730de48cb47168 100644 (file)
@@ -1,3 +1,5 @@
 // reference: https://vue-composition-api-rfc.netlify.com/api.html#provide-inject
 
-describe('api: provide/inject', () => {})
+describe('api: provide/inject', () => {
+  test.todo('should work')
+})
index 40b2e58dd222e16b375a3f218952b4fae7927592..dd0c8fbac1482a1eea7e473ba25dc72705cb92ff 100644 (file)
@@ -1,3 +1,5 @@
 // reference: https://vue-composition-api-rfc.netlify.com/api.html#lifecycle-hooks
 
-describe('api: lifecycle hooks', () => {})
+describe('api: lifecycle hooks', () => {
+  test.todo('should work')
+})
index a27755a680cda44d35657d8fc0cd558fb4e996ce..46b65e3a9def0cec52f6a2775866b0092a453239 100644 (file)
@@ -1,3 +1,5 @@
 // reference: https://vue-composition-api-rfc.netlify.com/api.html#setup
 
-describe('api: setup context', () => {})
+describe('api: setup context', () => {
+  test.todo('should work')
+})
index afad07ae75d9fa103d337c036738d9412d936103..ed49ae5600b29d89eb621b9ad466c14fccae149d 100644 (file)
@@ -1,3 +1,5 @@
 // reference: https://vue-composition-api-rfc.netlify.com/api.html#template-refs
 
-describe('api: template refs', () => {})
+describe('api: template refs', () => {
+  test.todo('should work')
+})
index 46c3bba1212d99607436db710a4315b731adea9f..9270aed5ce6e7d6189f6537bf89b8f10a859778c 100644 (file)
@@ -1,3 +1,5 @@
 // reference: https://vue-composition-api-rfc.netlify.com/api.html#watch
 
-describe('api: watch', () => {})
+describe('api: watch', () => {
+  test.todo('should work')
+})
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..401de464d4a7afc5364b837f7ffc08fd90954210 100644 (file)
@@ -0,0 +1,3 @@
+describe('vdom: h', () => {
+  test.todo('should work')
+})
index 70b786d12ed055a08b57f5cf47f717bf6a266301..a9abae43eff50aa8c2147ff912f2a61c9af91d55 100644 (file)
@@ -1 +1,3 @@
-// TODO
+describe('vdom: component', () => {
+  test.todo('should work')
+})
index 70b786d12ed055a08b57f5cf47f717bf6a266301..6542f178ae4b2884d772efe749de1ddc7a0a0260 100644 (file)
@@ -1 +1,3 @@
-// TODO
+describe('vdom: optimized mode', () => {
+  test.todo('should work')
+})
index 38b67f7664fc9af501d8364e756943364471af79..f07870ac8f7a2c44d8f7167c8bd81fa344398670 100644 (file)
@@ -1,39 +1,7 @@
 ;(global as any).__COMPAT__ = true
 
-import Vue from '../src/index'
+// import Vue from '../src/index'
 
-describe('2.x compat build', async () => {
-  test('should work', async () => {
-    const root = document.createElement('div')
-    document.body.appendChild(root)
-
-    const mounted = jest.fn()
-    const updated = jest.fn()
-
-    const instance = new Vue({
-      data() {
-        return { count: 0 }
-      },
-      methods: {
-        change() {
-          this.count++
-        }
-      },
-      render(h: any) {
-        return h('div', this.count)
-      },
-      mounted,
-      updated
-    }).$mount(root)
-
-    expect(instance.count).toBe(0)
-    expect(root.textContent).toBe('0')
-    expect(mounted).toHaveBeenCalled()
-
-    instance.change()
-    expect(instance.count).toBe(1)
-    await Vue.nextTick()
-    expect(root.textContent).toBe('1')
-    expect(updated).toHaveBeenCalled()
-  })
+describe('2.x compat build', () => {
+  test.todo('should work')
 })