@@ -28,15 +28,15 @@ describe('New validators', () => {
28
28
} ) ;
29
29
30
30
describe ( 'Length validator' , ( ) => {
31
- it ( 'should pass exact lenght of 5 characters validation' , ( ) => {
31
+ it ( 'should pass exact length of 5 characters validation' , ( ) => {
32
32
expect ( validatorMapper ( validators . EXACT_LENGTH ) ( { threshold : 5 } ) ( '12345' ) ) . toBeUndefined ( ) ;
33
33
} ) ;
34
34
35
- it ( 'should fail exact lenght of 5 characters validation' , ( ) => {
35
+ it ( 'should fail exact length of 5 characters validation' , ( ) => {
36
36
expect ( validatorMapper ( validators . EXACT_LENGTH ) ( { threshold : 5 } ) ( '1234' ) ) . toBe ( 'Should be 5 characters long.' ) ;
37
37
} ) ;
38
38
39
- it ( 'should fail exact lenght of 5 characters validation with custom message' , ( ) => {
39
+ it ( 'should fail exact length of 5 characters validation with custom message' , ( ) => {
40
40
expect ( validatorMapper ( validators . EXACT_LENGTH ) ( { threshold : 5 , message : 'Not 5 long' } ) ( '123456' ) ) . toBe ( 'Not 5 long' ) ;
41
41
} ) ;
42
42
@@ -52,15 +52,15 @@ describe('New validators', () => {
52
52
expect ( validatorMapper ( validators . MIN_LENGTH ) ( { threshold : 3 , message : 'Too short!' } ) ( '12' ) ) . toBe ( 'Too short!' ) ;
53
53
} ) ;
54
54
55
- it ( 'should pass max lenght of 3 characters long validation' , ( ) => {
55
+ it ( 'should pass max length of 3 characters long validation' , ( ) => {
56
56
expect ( validatorMapper ( validators . MAX_LENGTH ) ( { threshold : 3 } ) ( '12' ) ) . toBeUndefined ( ) ;
57
57
} ) ;
58
58
59
- it ( 'should not pass max lenght of 3 characters validation' , ( ) => {
59
+ it ( 'should not pass max length of 3 characters validation' , ( ) => {
60
60
expect ( validatorMapper ( validators . MAX_LENGTH ) ( { threshold : 3 } ) ( '1234' ) ) . toBe ( 'Can have maximum of 3 characters.' ) ;
61
61
} ) ;
62
62
63
- it ( 'should not pass max lenght of 3 characters validation with custom message' , ( ) => {
63
+ it ( 'should not pass max length of 3 characters validation with custom message' , ( ) => {
64
64
expect ( validatorMapper ( validators . MAX_LENGTH ) ( { threshold : 3 , message : 'Too long!' } ) ( '1234' ) ) . toBe ( 'Too long!' ) ;
65
65
} ) ;
66
66
0 commit comments