@@ -147,9 +147,9 @@ describe("utils", () => {
147
147
} )
148
148
149
149
it ( "returns a message for invalid input" , ( ) => {
150
- expect ( validateMaximum ( 1 , 0 ) ) . toEqual ( "Value must be less than 0" )
151
- expect ( validateMaximum ( 10 , 9 ) ) . toEqual ( "Value must be less than 9" )
152
- expect ( validateMaximum ( 20 , 19 ) ) . toEqual ( "Value must be less than 19" )
150
+ expect ( validateMaximum ( 1 , 0 ) ) . toEqual ( "Value must be less than or equal to 0" )
151
+ expect ( validateMaximum ( 10 , 9 ) ) . toEqual ( "Value must be less than or equal to 9" )
152
+ expect ( validateMaximum ( 20 , 19 ) ) . toEqual ( "Value must be less than or equal to 19" )
153
153
} )
154
154
} )
155
155
@@ -160,9 +160,9 @@ describe("utils", () => {
160
160
} )
161
161
162
162
it ( "returns a message for invalid input" , ( ) => {
163
- expect ( validateMinimum ( - 1 , 0 ) ) . toEqual ( "Value must be greater than 0" )
164
- expect ( validateMinimum ( 1 , 2 ) ) . toEqual ( "Value must be greater than 2" )
165
- expect ( validateMinimum ( 10 , 20 ) ) . toEqual ( "Value must be greater than 20" )
163
+ expect ( validateMinimum ( - 1 , 0 ) ) . toEqual ( "Value must be greater than or equal to 0" )
164
+ expect ( validateMinimum ( 1 , 2 ) ) . toEqual ( "Value must be greater than or equal to 2" )
165
+ expect ( validateMinimum ( 10 , 20 ) ) . toEqual ( "Value must be greater than or equal to 20" )
166
166
} )
167
167
} )
168
168
@@ -940,7 +940,7 @@ describe("utils", () => {
940
940
maximum : 0
941
941
}
942
942
value = 1
943
- assertValidateParam ( param , value , [ "Value must be less than 0" ] )
943
+ assertValidateParam ( param , value , [ "Value must be less than or equal to 0" ] )
944
944
945
945
// invalid number with minimum:0
946
946
param = {
@@ -949,7 +949,7 @@ describe("utils", () => {
949
949
minimum : 0
950
950
}
951
951
value = - 10
952
- assertValidateParam ( param , value , [ "Value must be greater than 0" ] )
952
+ assertValidateParam ( param , value , [ "Value must be greater than or equal to 0" ] )
953
953
} )
954
954
955
955
it ( "validates optional numbers" , ( ) => {
0 commit comments