@@ -392,7 +392,7 @@ describe('MatInput without forms', () => {
392
392
393
393
let el = fixture . debugElement . query ( By . css ( 'label' ) ) ;
394
394
expect ( el ) . not . toBeNull ( ) ;
395
- expect ( el . nativeElement . textContent ) . toMatch ( / h e l l o \s + \* / g ) ;
395
+ expect ( el . nativeElement . textContent ) . toBe ( ' hello*' ) ;
396
396
} ) ) ;
397
397
398
398
it ( 'should hide the required star if input is disabled' , ( ) => {
@@ -404,7 +404,7 @@ describe('MatInput without forms', () => {
404
404
const el = fixture . debugElement . query ( By . css ( 'label' ) ) ;
405
405
406
406
expect ( el ) . not . toBeNull ( ) ;
407
- expect ( el . nativeElement . textContent ! . trim ( ) ) . toMatch ( / ^ h e l l o $ / ) ;
407
+ expect ( el . nativeElement . textContent ! . trim ( ) ) . toBe ( ' hello' ) ;
408
408
} ) ;
409
409
410
410
it ( 'should hide the required star from screen readers' , fakeAsync ( ( ) => {
@@ -422,12 +422,12 @@ describe('MatInput without forms', () => {
422
422
423
423
let el = fixture . debugElement . query ( By . css ( 'label' ) ) ;
424
424
expect ( el ) . not . toBeNull ( ) ;
425
- expect ( el . nativeElement . textContent ) . toMatch ( / h e l l o \s + \* / g ) ;
425
+ expect ( el . nativeElement . textContent ) . toBe ( ' hello*' ) ;
426
426
427
427
fixture . componentInstance . hideRequiredMarker = true ;
428
428
fixture . detectChanges ( ) ;
429
429
430
- expect ( el . nativeElement . textContent ) . toMatch ( / h e l l o / g ) ;
430
+ expect ( el . nativeElement . textContent ) . toBe ( ' hello' ) ;
431
431
} ) ) ;
432
432
433
433
it ( 'supports the disabled attribute as binding' , fakeAsync ( ( ) => {
0 commit comments