File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
material-experimental/mdc-input Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1080,7 +1080,7 @@ describe('MatMdcInput with forms', () => {
1080
1080
expect ( errorIds ) . toBeTruthy ( 'errors should be shown' ) ;
1081
1081
expect ( describedBy ) . toBe ( errorIds ) ;
1082
1082
} ) ) ;
1083
-
1083
+
1084
1084
it ( 'should set `aria-invalid` to true if the input is empty' , fakeAsync ( ( ) => {
1085
1085
// Submit the form since it's the one that triggers the default error state matcher.
1086
1086
dispatchFakeEvent ( fixture . nativeElement . querySelector ( 'form' ) , 'submit' ) ;
Original file line number Diff line number Diff line change @@ -1081,7 +1081,7 @@ describe('MatInput with forms', () => {
1081
1081
expect ( testComponent . formControl . untouched ) . toBe ( true , 'Expected untouched form control' ) ;
1082
1082
expect ( containerEl . querySelectorAll ( 'mat-error' ) . length ) . toBe ( 0 , 'Expected no error message' ) ;
1083
1083
expect ( inputEl . getAttribute ( 'aria-invalid' ) )
1084
- . toBe ( " false" , 'Expected aria-invalid to be set to "false".' ) ;
1084
+ . toBe ( ' false' , 'Expected aria-invalid to be set to "false".' ) ;
1085
1085
} ) ) ;
1086
1086
1087
1087
it ( 'should display an error message when the input is touched and invalid' , fakeAsync ( ( ) => {
@@ -1135,7 +1135,7 @@ describe('MatInput with forms', () => {
1135
1135
expect ( component . formGroup . invalid ) . toBe ( true , 'Expected form control to be invalid' ) ;
1136
1136
expect ( containerEl . querySelectorAll ( 'mat-error' ) . length ) . toBe ( 0 , 'Expected no error message' ) ;
1137
1137
expect ( inputEl . getAttribute ( 'aria-invalid' ) )
1138
- . toBe ( " false" , 'Expected aria-invalid to be set to "false".' ) ;
1138
+ . toBe ( ' false' , 'Expected aria-invalid to be set to "false".' ) ;
1139
1139
expect ( component . formGroupDirective . submitted )
1140
1140
. toBe ( false , 'Expected form not to have been submitted' ) ;
1141
1141
You can’t perform that action at this time.
0 commit comments