Evan You пре 9 година
родитељ
комит
d304eee296
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      test/weex/compiler/v-model.spec.js

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

@@ -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 (value) {x=value}}`))
+    expect(render).toMatch(strToRegExp(`model:{value:(x),callback:function ($$v) {x=$$v}}`))
     expect(staticRenderFns).toEqual([])
     expect(staticRenderFns).toEqual([])
     expect(errors).toEqual([])
     expect(errors).toEqual([])
   })
   })