Skip to content

Commit 0c42a68

Browse files
committed
test for a1c6bcd
1 parent b3b2380 commit 0c42a68

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test/unit/specs/directives/model_spec.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,19 @@ if (_.inBrowser) {
306306
data: {
307307
test: 'b'
308308
},
309-
template: '<input v-model="test" value="a">'
309+
template: '<input v-model="test | test" value="a">',
310+
filters: {
311+
test: {
312+
read: function (v) {
313+
return v.slice(0, -1)
314+
},
315+
write: function (v) {
316+
return v + 'c'
317+
}
318+
}
319+
}
310320
})
311-
expect(vm.test).toBe('a')
321+
expect(vm.test).toBe('ac')
312322
expect(el.firstChild.value).toBe('a')
313323
})
314324

0 commit comments

Comments
 (0)