You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
399 B
16 lines
399 B
9 years ago
|
import Vue from 'vue'
|
||
|
|
||
|
describe('Global API: compile', () => {
|
||
|
it('should compile render functions', () => {
|
||
|
const res = Vue.compile('<div><span>{{ msg }}</span></div>')
|
||
|
const vm = new Vue({
|
||
|
data: {
|
||
|
msg: 'hello'
|
||
|
},
|
||
|
render: res.render,
|
||
|
staticRenderFns: res.staticRenderFns
|
||
|
}).$mount()
|
||
|
expect(vm.$el.innerHTML).toContain('<span>hello</span>')
|
||
|
})
|
||
|
})
|