test: test on-the-fly compilation

This commit is contained in:
Evan You 2019-09-20 00:56:02 -04:00
parent 30e60c0492
commit 3e1973f065

View File

@ -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`)
})