@@ -137,13 +137,13 @@ describe('alert', () => {
137137 expect ( wrapper . emitted ( ) ) . toHaveProperty ( 'update:modelValue' )
138138 } )
139139
140- it ( 'button child on click emits dismissed ' , async ( ) => {
140+ it ( 'button child on click emits closed ' , async ( ) => {
141141 const wrapper = mount ( BAlert , {
142142 props : { modelValue : true , dismissible : true } ,
143143 } )
144144 const $button = wrapper . get ( 'button' )
145145 await $button . trigger ( 'click' )
146- expect ( wrapper . emitted ( ) ) . toHaveProperty ( 'dismissed ' )
146+ expect ( wrapper . emitted ( ) ) . toHaveProperty ( 'closed ' )
147147 } )
148148
149149 it ( 'button child on click emits update:modelValue and gives value false if prop modelValue boolean' , async ( ) => {
@@ -168,28 +168,28 @@ describe('alert', () => {
168168 expect ( event ) . toEqual ( [ 0 ] )
169169 } )
170170
171- it ( 'does not have BCloseButton when slot dismissible ' , ( ) => {
171+ it ( 'does not have BCloseButton when slot close ' , ( ) => {
172172 const wrapper = mount ( BAlert , {
173173 props : { dismissible : true , modelValue : true } ,
174- slots : { dismissible : 'foobar' } ,
174+ slots : { close : 'foobar' } ,
175175 } )
176176 const $closebutton = wrapper . findComponent ( BCloseButton )
177177 expect ( $closebutton . exists ( ) ) . toBe ( false )
178178 } )
179179
180- it ( 'has button child if prop dismissible and slot dismissible ' , ( ) => {
180+ it ( 'has button child if prop dismissible and slot close ' , ( ) => {
181181 const wrapper = mount ( BAlert , {
182182 props : { modelValue : true , dismissible : true } ,
183- slots : { dismissible : 'foobar' } ,
183+ slots : { close : 'foobar' } ,
184184 } )
185185 const $button = wrapper . find ( 'button' )
186186 expect ( $button . exists ( ) ) . toBe ( true )
187187 } )
188188
189- it ( 'does not have button child if prop dismissible false' , ( ) => {
189+ it ( 'does not have button child if prop close false' , ( ) => {
190190 const wrapper = mount ( BAlert , {
191191 props : { modelValue : true , dismissible : false } ,
192- slots : { dismissible : 'foobar' } ,
192+ slots : { close : 'foobar' } ,
193193 } )
194194 const $button = wrapper . find ( 'button' )
195195 expect ( $button . exists ( ) ) . toBe ( false )
@@ -198,7 +198,7 @@ describe('alert', () => {
198198 it ( 'button child has static attribute type button' , ( ) => {
199199 const wrapper = mount ( BAlert , {
200200 props : { modelValue : true , dismissible : true } ,
201- slots : { dismissible : 'foobar' } ,
201+ slots : { close : 'foobar' } ,
202202 } )
203203 const $button = wrapper . get ( 'button' )
204204 expect ( $button . attributes ( 'type' ) ) . toBe ( 'button' )
@@ -207,7 +207,7 @@ describe('alert', () => {
207207 it ( 'button child has static attribute data-bs-dismiss alert' , ( ) => {
208208 const wrapper = mount ( BAlert , {
209209 props : { modelValue : true , dismissible : true } ,
210- slots : { dismissible : 'foobar' } ,
210+ slots : { close : 'foobar' } ,
211211 } )
212212 const $button = wrapper . get ( 'button' )
213213 expect ( $button . attributes ( 'data-bs-dismiss' ) ) . toBe ( 'alert' )
@@ -216,27 +216,27 @@ describe('alert', () => {
216216 it ( 'button child on click emits update:modelValue' , async ( ) => {
217217 const wrapper = mount ( BAlert , {
218218 props : { modelValue : true , dismissible : true } ,
219- slots : { dismissible : 'foobar' } ,
219+ slots : { close : 'foobar' } ,
220220 } )
221221 const $button = wrapper . get ( 'button' )
222222 await $button . trigger ( 'click' )
223223 expect ( wrapper . emitted ( ) ) . toHaveProperty ( 'update:modelValue' )
224224 } )
225225
226- it ( 'button child on click emits dismissed ' , async ( ) => {
226+ it ( 'button child on click emits closed ' , async ( ) => {
227227 const wrapper = mount ( BAlert , {
228228 props : { modelValue : true , dismissible : true } ,
229- slots : { dismissible : 'foobar' } ,
229+ slots : { close : 'foobar' } ,
230230 } )
231231 const $button = wrapper . get ( 'button' )
232232 await $button . trigger ( 'click' )
233- expect ( wrapper . emitted ( ) ) . toHaveProperty ( 'dismissed ' )
233+ expect ( wrapper . emitted ( ) ) . toHaveProperty ( 'closed ' )
234234 } )
235235
236236 it ( 'button child on click emits update:modelValue and gives value false if prop modelValue boolean' , async ( ) => {
237237 const wrapper = mount ( BAlert , {
238238 props : { modelValue : true , dismissible : true } ,
239- slots : { dismissible : 'foobar' } ,
239+ slots : { close : 'foobar' } ,
240240 } )
241241 const $button = wrapper . get ( 'button' )
242242 await $button . trigger ( 'click' )
@@ -248,7 +248,7 @@ describe('alert', () => {
248248 it ( 'button child on click emits update:modelValue and gives value 0 if prop modelValue number' , async ( ) => {
249249 const wrapper = mount ( BAlert , {
250250 props : { modelValue : 1000 , dismissible : true } ,
251- slots : { dismissible : 'foobar' } ,
251+ slots : { close : 'foobar' } ,
252252 } )
253253 const $button = wrapper . get ( 'button' )
254254 await $button . trigger ( 'click' )
0 commit comments