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