Bläddra i källkod

test: test on-the-fly compilation

Evan You 6 år sedan
förälder
incheckning
3e1973f065
1 ändrade filer med 15 tillägg och 0 borttagningar
  1. 15 0
      packages/vue/__tests__/index.spec.ts

+ 15 - 0
packages/vue/__tests__/index.spec.ts

@@ -0,0 +1,15 @@
+import { createApp } from '../src'
+
+it('should support on-the-fly template compilation', () => {
+  const container = document.createElement('div')
+  const App = {
+    template: `{{ count }}`,
+    data() {
+      return {
+        count: 0
+      }
+    }
+  }
+  createApp().mount(App, container)
+  expect(container.innerHTML).toBe(`0`)
+})