import Vue from 'vue'
describe('Global API: compile', () => {
it('should compile render functions', () => {
const res = Vue.compile('
{{ msg }}
')
const vm = new Vue({
data: {
msg: 'hello'
},
render: res.render,
staticRenderFns: res.staticRenderFns
}).$mount()
expect(vm.$el.innerHTML).toContain('hello')
})
})