@@ -30,7 +30,7 @@ describe('Request Network Data Validator', () => {
3030 // 'result.valid should be false'
3131 expect ( result . valid ) . toBe ( false ) ;
3232 // 'result.errors is wrong'
33- expect ( result . errors [ 0 ] . message ) . toBe ( 'should be string' ) ;
33+ expect ( result . errors [ 0 ] . message ) . toBe ( 'must be string' ) ;
3434 } ) ;
3535
3636 it ( 'should not validate an invalid invoice 0.0.3 format' , ( ) => {
@@ -39,7 +39,7 @@ describe('Request Network Data Validator', () => {
3939 // 'result.valid should be false'
4040 expect ( result . valid ) . toBe ( false ) ;
4141 // 'result.errors is wrong'
42- expect ( result . errors [ 0 ] . message ) . toBe ( 'should be string' ) ;
42+ expect ( result . errors [ 0 ] . message ) . toBe ( 'must be string' ) ;
4343 } ) ;
4444
4545 it ( 'should not validate a json without meta' , ( ) => {
@@ -66,7 +66,7 @@ describe('Request Network Data Validator', () => {
6666 // 'result.valid should be false'
6767 expect ( result . valid ) . toBe ( false ) ;
6868 // '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"' ) ;
7070 } ) ;
7171
7272 it ( 'should not validate a json with required parameter missing' , ( ) => {
@@ -75,7 +75,7 @@ describe('Request Network Data Validator', () => {
7575 // 'result.valid should be false'
7676 expect ( result . valid ) . toBe ( false ) ;
7777 // '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\'` ) ;
7979 } ) ;
8080
8181 it ( 'should not validate a json with meta.format missing' , ( ) => {
0 commit comments