test: test on-the-fly compilation
This commit is contained in:
parent
30e60c0492
commit
3e1973f065
15
packages/vue/__tests__/index.spec.ts
Normal file
15
packages/vue/__tests__/index.spec.ts
Normal 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`)
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user