@@ -30,7 +30,7 @@ describe('Request Network Data Validator', () => {
30
30
// 'result.valid should be false'
31
31
expect ( result . valid ) . toBe ( false ) ;
32
32
// 'result.errors is wrong'
33
- expect ( result . errors [ 0 ] . message ) . toBe ( 'should be string' ) ;
33
+ expect ( result . errors [ 0 ] . message ) . toBe ( 'must be string' ) ;
34
34
} ) ;
35
35
36
36
it ( 'should not validate an invalid invoice 0.0.3 format' , ( ) => {
@@ -39,7 +39,7 @@ describe('Request Network Data Validator', () => {
39
39
// 'result.valid should be false'
40
40
expect ( result . valid ) . toBe ( false ) ;
41
41
// 'result.errors is wrong'
42
- expect ( result . errors [ 0 ] . message ) . toBe ( 'should be string' ) ;
42
+ expect ( result . errors [ 0 ] . message ) . toBe ( 'must be string' ) ;
43
43
} ) ;
44
44
45
45
it ( 'should not validate a json without meta' , ( ) => {
@@ -66,7 +66,7 @@ describe('Request Network Data Validator', () => {
66
66
// 'result.valid should be false'
67
67
expect ( result . valid ) . toBe ( false ) ;
68
68
// 'result.errors is wrong'
69
- expect ( result . errors [ 0 ] . message ) . toBe ( 'should match format "date-time"' ) ;
69
+ expect ( result . errors [ 0 ] . message ) . toBe ( 'must match format "date-time"' ) ;
70
70
} ) ;
71
71
72
72
it ( 'should not validate a json with required parameter missing' , ( ) => {
@@ -75,7 +75,7 @@ describe('Request Network Data Validator', () => {
75
75
// 'result.valid should be false'
76
76
expect ( result . valid ) . toBe ( false ) ;
77
77
// 'result.errors is wrong'
78
- expect ( result . errors [ 0 ] . message ) . toBe ( `should have required property \'name\'` ) ;
78
+ expect ( result . errors [ 0 ] . message ) . toBe ( `must have required property \'name\'` ) ;
79
79
} ) ;
80
80
81
81
it ( 'should not validate a json with meta.format missing' , ( ) => {
0 commit comments