mirror of https://github.com/vuejs/vue.git
fix weex model test
This commit is contained in:
parent
9d3ceba251
commit
fc6f181052
|
@ -14,7 +14,7 @@ describe('compile v-model', () => {
|
||||||
it('should compile other component with whole $event as the value', () => {
|
it('should compile other component with whole $event as the value', () => {
|
||||||
const { render, staticRenderFns, errors } = compile(`<div><foo v-model="x" /></div>`)
|
const { render, staticRenderFns, errors } = compile(`<div><foo v-model="x" /></div>`)
|
||||||
expect(render).not.toBeUndefined()
|
expect(render).not.toBeUndefined()
|
||||||
expect(render).toMatch(strToRegExp(`model:{value:(x),callback:function ($$v) {x=$$v}}`))
|
expect(render).toMatch(strToRegExp(`model:{value:(x),callback:function ($$v) {x=$$v},expression:"x"}`))
|
||||||
expect(staticRenderFns).toEqual([])
|
expect(staticRenderFns).toEqual([])
|
||||||
expect(errors).toEqual([])
|
expect(errors).toEqual([])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue