We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47afa07 commit 37aeb19Copy full SHA for 37aeb19
test/unit/features/directives/model-text.spec.js
@@ -19,15 +19,19 @@ describe('Directive v-model text', () => {
19
}).then(done)
20
})
21
22
- it('should not create a new property ended with spaces when', () => {
+ it('should work with space ended expression in v-model', () => {
23
const vm = new Vue({
24
data: {
25
- test: 'b'
+ obj: {
26
+ test: 'b'
27
+ }
28
},
- template: '<input v-model="test ">'
29
+ template: '<input v-model="obj.test ">'
30
}).$mount()
- expect(vm['test ']).toBe(undefined);
- expect(vm.test).toBe('b');
31
+
32
+ triggerEvent(vm.$el, 'input')
33
+ expect(vm.obj['test ']).toBe(undefined)
34
+ expect(vm.obj.test).toBe('b')
35
36
37
it('.lazy modifier', () => {
0 commit comments