File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
test/unit/features/directives Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,14 @@ describe('Directive v-model select', () => {
80
80
waitForUpdate ( function ( ) {
81
81
expect ( vm . $el . value ) . toBe ( '3' )
82
82
expect ( vm . $el . childNodes [ 2 ] . selected ) . toBe ( true )
83
+
83
84
updateSelect ( vm . $el , '1' )
84
85
triggerEvent ( vm . $el , 'change' )
85
86
expect ( vm . test ) . toBe ( '1' )
87
+
88
+ updateSelect ( vm . $el , '2' )
89
+ triggerEvent ( vm . $el , 'change' )
90
+ expect ( vm . test ) . toBe ( 2 )
86
91
} ) . then ( done )
87
92
} )
88
93
@@ -152,7 +157,7 @@ describe('Directive v-model select', () => {
152
157
} ,
153
158
template :
154
159
'<select v-model="test">' +
155
- '<option v-for="o in opts" :value="o">optio {{ o }}</option>' +
160
+ '<option v-for="o in opts" :value="o">option {{ o }}</option>' +
156
161
'</select>'
157
162
} ) . $mount ( )
158
163
document . body . appendChild ( vm . $el )
@@ -374,7 +379,7 @@ describe('Directive v-model select', () => {
374
379
expect ( vm . test ) . toBe ( 1 )
375
380
} )
376
381
377
- it ( 'should respect different pritive type value' , ( done ) => {
382
+ it ( 'should respect different primitive type value' , ( done ) => {
378
383
const vm = new Vue ( {
379
384
data : {
380
385
test : 0
You can’t perform that action at this time.
0 commit comments