vue3-yuanma/packages/vue/__tests__/index.spec.ts
2019-09-20 00:56:02 -04:00

16 lines
334 B
TypeScript

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