diff --git a/packages/vue/__tests__/index.spec.ts b/packages/vue/__tests__/index.spec.ts index b6676b1f..e560a0df 100644 --- a/packages/vue/__tests__/index.spec.ts +++ b/packages/vue/__tests__/index.spec.ts @@ -45,4 +45,17 @@ describe('compiler + runtime integration', () => { app.mount(App, container) expect(container.innerHTML).toBe('') }) + + it('should support using element innerHTML as template', () => { + const app = createApp() + let container = document.createElement('div') + container.innerHTML = '{{msg}}' + const App = { + data: { + msg: 'hello' + } + } + app.mount(App, container) + expect(container.innerHTML).toBe('hello') + }) })