From: Evan You Date: Fri, 20 Sep 2019 04:56:02 +0000 (-0400) Subject: test: test on-the-fly compilation X-Git-Tag: v3.0.0-alpha.0~739 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e1973f065a5de887991c3ff8dbd626a23375b8d;p=thirdparty%2Fvuejs%2Fcore.git test: test on-the-fly compilation --- diff --git a/packages/vue/__tests__/index.spec.ts b/packages/vue/__tests__/index.spec.ts new file mode 100644 index 0000000000..eea111ed04 --- /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`) +})