File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -271,10 +271,16 @@ import {map} from 'rxjs/operator/map';
271
271
it ( 'should not error on "undefined" pattern' ,
272
272
( ) => expect ( Validators . pattern ( undefined ! ) ( new FormControl ( 'aaAA' ) ) ) . toBeNull ( ) ) ;
273
273
274
- it ( 'should work with string containing line boundary' ,
274
+ it ( 'should work with pattern string containing both boundary symbols ' ,
275
275
( ) => expect ( Validators . pattern ( '^[aA]*$' ) ( new FormControl ( 'aaAA' ) ) ) . toBeNull ( ) ) ;
276
276
277
- it ( 'should work with string not containing line boundary' ,
277
+ it ( 'should work with pattern string containing only start boundary symbols' ,
278
+ ( ) => expect ( Validators . pattern ( '^[aA]*' ) ( new FormControl ( 'aaAA' ) ) ) . toBeNull ( ) ) ;
279
+
280
+ it ( 'should work with pattern string containing only end boundary symbols' ,
281
+ ( ) => expect ( Validators . pattern ( '[aA]*$' ) ( new FormControl ( 'aaAA' ) ) ) . toBeNull ( ) ) ;
282
+
283
+ it ( 'should work with pattern string not containing any boundary symbols' ,
278
284
( ) => expect ( Validators . pattern ( '[aA]*' ) ( new FormControl ( 'aaAA' ) ) ) . toBeNull ( ) ) ;
279
285
} ) ;
280
286
You can’t perform that action at this time.
0 commit comments