@@ -380,7 +380,7 @@ describe('MatInput without forms', () => {
380
380
381
381
let el = fixture . debugElement . query ( By . css ( 'label' ) ) ;
382
382
expect ( el ) . not . toBeNull ( ) ;
383
- expect ( el . nativeElement . textContent ) . toMatch ( / h e l l o \s + \* / g ) ;
383
+ expect ( el . nativeElement . textContent ) . toBe ( ' hello*' ) ;
384
384
} ) ) ;
385
385
386
386
it ( 'should hide the required star if input is disabled' , ( ) => {
@@ -392,7 +392,7 @@ describe('MatInput without forms', () => {
392
392
const el = fixture . debugElement . query ( By . css ( 'label' ) ) ;
393
393
394
394
expect ( el ) . not . toBeNull ( ) ;
395
- expect ( el . nativeElement . textContent ) . toMatch ( / ^ h e l l o $ / ) ;
395
+ expect ( el . nativeElement . textContent ) . toBe ( ' hello' ) ;
396
396
} ) ;
397
397
398
398
it ( 'should hide the required star from screen readers' , fakeAsync ( ( ) => {
@@ -410,12 +410,12 @@ describe('MatInput without forms', () => {
410
410
411
411
let el = fixture . debugElement . query ( By . css ( 'label' ) ) ;
412
412
expect ( el ) . not . toBeNull ( ) ;
413
- expect ( el . nativeElement . textContent ) . toMatch ( / h e l l o \s + \* / g ) ;
413
+ expect ( el . nativeElement . textContent ) . toBe ( ' hello*' ) ;
414
414
415
415
fixture . componentInstance . hideRequiredMarker = true ;
416
416
fixture . detectChanges ( ) ;
417
417
418
- expect ( el . nativeElement . textContent ) . toMatch ( / h e l l o / g ) ;
418
+ expect ( el . nativeElement . textContent ) . toBe ( ' hello' ) ;
419
419
} ) ) ;
420
420
421
421
it ( 'supports the disabled attribute as binding' , fakeAsync ( ( ) => {
0 commit comments