From 3e1973f065a5de887991c3ff8dbd626a23375b8d Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 20 Sep 2019 00:56:02 -0400 Subject: [PATCH] test: test on-the-fly compilation --- packages/vue/__tests__/index.spec.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/vue/__tests__/index.spec.ts diff --git a/packages/vue/__tests__/index.spec.ts b/packages/vue/__tests__/index.spec.ts new file mode 100644 index 00000000..eea111ed --- /dev/null +++ b/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`) +})