Skip to content

Commit fc6f181

Browse files
committed
fix weex model test
1 parent 9d3ceba commit fc6f181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/weex/compiler/v-model.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('compile v-model', () => {
1414
it('should compile other component with whole $event as the value', () => {
1515
const { render, staticRenderFns, errors } = compile(`<div><foo v-model="x" /></div>`)
1616
expect(render).not.toBeUndefined()
17-
expect(render).toMatch(strToRegExp(`model:{value:(x),callback:function ($$v) {x=$$v}}`))
17+
expect(render).toMatch(strToRegExp(`model:{value:(x),callback:function ($$v) {x=$$v},expression:"x"}`))
1818
expect(staticRenderFns).toEqual([])
1919
expect(errors).toEqual([])
2020
})

0 commit comments

Comments
 (0)