@@ -12,22 +12,22 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
12
12
await response
13
13
expect ( wrapper . text ( ) ) . toContain ( 'checkbox checked' )
14
14
} )
15
- it ( 'sets element checked true with no option passed' , ( ) => {
15
+ it ( 'sets element checked true with no option passed' , async ( ) => {
16
16
const wrapper = mountingMethod ( ComponentWithInput )
17
17
const input = wrapper . find ( 'input[type="checkbox"]' )
18
- input . setChecked ( )
18
+ await input . setChecked ( )
19
19
20
20
expect ( input . element . checked ) . toEqual ( true )
21
21
} )
22
22
23
- it ( 'sets element checked equal to param passed' , ( ) => {
23
+ it ( 'sets element checked equal to param passed' , async ( ) => {
24
24
const wrapper = mountingMethod ( ComponentWithInput )
25
25
const input = wrapper . find ( 'input[type="checkbox"]' )
26
26
27
- input . setChecked ( true )
27
+ await input . setChecked ( true )
28
28
expect ( input . element . checked ) . toEqual ( true )
29
29
30
- input . setChecked ( false )
30
+ await input . setChecked ( false )
31
31
expect ( input . element . checked ) . toEqual ( false )
32
32
} )
33
33
@@ -56,10 +56,10 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
56
56
expect ( wrapper . find ( '.counter' ) . text ( ) ) . toEqual ( '4' )
57
57
} )
58
58
59
- it ( 'triggers a change event when called on a checkbox' , ( ) => {
59
+ it ( 'triggers a change event when called on a checkbox' , async ( ) => {
60
60
const listener = jest . fn ( )
61
61
62
- mountingMethod ( {
62
+ await mountingMethod ( {
63
63
// For compatibility with earlier versions of Vue that use the `click`
64
64
// event for updating `v-model`.
65
65
template : `
@@ -75,10 +75,10 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
75
75
expect ( listener ) . toHaveBeenCalled ( )
76
76
} )
77
77
78
- it ( 'does not trigger a change event if the checkbox is already checked' , ( ) => {
78
+ it ( 'does not trigger a change event if the checkbox is already checked' , async ( ) => {
79
79
const listener = jest . fn ( )
80
80
81
- mountingMethod ( {
81
+ await mountingMethod ( {
82
82
template : `
83
83
<input
84
84
type="checkbox"
@@ -118,10 +118,10 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
118
118
expect ( wrapper . find ( '.counter' ) . text ( ) ) . toEqual ( '4' )
119
119
} )
120
120
121
- it ( 'triggers a change event when called on a radio button' , ( ) => {
121
+ it ( 'triggers a change event when called on a radio button' , async ( ) => {
122
122
const listener = jest . fn ( )
123
123
124
- mountingMethod ( {
124
+ await mountingMethod ( {
125
125
template : `
126
126
<input
127
127
type="radio"
@@ -135,10 +135,10 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
135
135
expect ( listener ) . toHaveBeenCalled ( )
136
136
} )
137
137
138
- it ( 'does not trigger a change event if the radio button is already checked' , ( ) => {
138
+ it ( 'does not trigger a change event if the radio button is already checked' , async ( ) => {
139
139
const listener = jest . fn ( )
140
140
141
- mountingMethod ( {
141
+ await mountingMethod ( {
142
142
template : `
143
143
<input
144
144
type="radio"
0 commit comments