File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -310,22 +310,22 @@ describe('MatButton', () => {
310
310
} ) ;
311
311
312
312
it ( 'should disable the ripple when the button is disabled' , ( ) => {
313
- expect ( buttonRippleInstance . disabled ) . toBeFalsy (
314
- 'Expected an enabled button[mat-button] to have an enabled ripple' ,
315
- ) ;
316
- expect ( anchorRippleInstance . disabled ) . toBeFalsy (
317
- 'Expected an enabled a[mat-button] to have an enabled ripple' ,
318
- ) ;
313
+ expect ( buttonRippleInstance . disabled )
314
+ . withContext ( 'Expected an enabled button[mat-button] to have an enabled ripple' )
315
+ . toBeFalsy ( ) ;
316
+ expect ( anchorRippleInstance . disabled )
317
+ . withContext ( 'Expected an enabled a[mat-button] to have an enabled ripple' )
318
+ . toBeFalsy ( ) ;
319
319
320
320
testComponent . isDisabled = true ;
321
321
fixture . detectChanges ( ) ;
322
322
323
- expect ( buttonRippleInstance . disabled ) . toBeTruthy (
324
- 'Expected a disabled button[mat-button] not to have an enabled ripple' ,
325
- ) ;
326
- expect ( anchorRippleInstance . disabled ) . toBeTruthy (
327
- 'Expected a disabled a[mat-button] not to have an enabled ripple' ,
328
- ) ;
323
+ expect ( buttonRippleInstance . disabled )
324
+ . withContext ( 'Expected a disabled button[mat-button] not to have an enabled ripple' )
325
+ . toBeTruthy ( ) ;
326
+ expect ( anchorRippleInstance . disabled )
327
+ . withContext ( 'Expected a disabled a[mat-button] not to have an enabled ripple' )
328
+ . toBeTruthy ( ) ;
329
329
} ) ;
330
330
} ) ;
331
331
You can’t perform that action at this time.
0 commit comments