@@ -219,37 +219,37 @@ describe('SchemaHelpers', () => {
219219 test ( 'should handle number/integer inclusive range' , ( ) => {
220220 const schema = new Schema ( { minimum : 2 , maximum : 5 } ) ;
221221 const result = SchemaHelpers . humanizeConstraints ( schema ) ;
222- expect ( result ) . toEqual ( [ '[ 2 .. 5 ] ' ] ) ;
222+ expect ( result ) . toEqual ( [ '2 <= value <= 5 ' ] ) ;
223223 } ) ;
224224
225225 test ( 'should handle number/integer exclusive range' , ( ) => {
226226 const schema = new Schema ( { minimum : 2 , exclusiveMaximum : 5 } ) ;
227227 const result = SchemaHelpers . humanizeConstraints ( schema ) ;
228- expect ( result ) . toEqual ( [ '[ 2 .. 5 ) ' ] ) ;
228+ expect ( result ) . toEqual ( [ '2 <= value < 5 ' ] ) ;
229229 } ) ;
230230
231231 test ( 'should handle inclusive minimum' , ( ) => {
232232 const schema = new Schema ( { minimum : 2 } ) ;
233233 const result = SchemaHelpers . humanizeConstraints ( schema ) ;
234- expect ( result ) . toEqual ( [ '>= 2 ' ] ) ;
234+ expect ( result ) . toEqual ( [ '2 <= value ' ] ) ;
235235 } ) ;
236236
237237 test ( 'should handle inclusive maximum' , ( ) => {
238238 const schema = new Schema ( { maximum : 2 } ) ;
239239 const result = SchemaHelpers . humanizeConstraints ( schema ) ;
240- expect ( result ) . toEqual ( [ '<= 2' ] ) ;
240+ expect ( result ) . toEqual ( [ 'value <= 2' ] ) ;
241241 } ) ;
242242
243243 test ( 'should handle exclusive minimum' , ( ) => {
244244 const schema = new Schema ( { exclusiveMinimum : 5 } ) ;
245245 const result = SchemaHelpers . humanizeConstraints ( schema ) ;
246- expect ( result ) . toEqual ( [ '> 5 ' ] ) ;
246+ expect ( result ) . toEqual ( [ '5 < value ' ] ) ;
247247 } ) ;
248248
249249 test ( 'should handle exclusive maximum' , ( ) => {
250250 const schema = new Schema ( { exclusiveMaximum : 5 } ) ;
251251 const result = SchemaHelpers . humanizeConstraints ( schema ) ;
252- expect ( result ) . toEqual ( [ '< 5' ] ) ;
252+ expect ( result ) . toEqual ( [ 'value < 5' ] ) ;
253253 } ) ;
254254
255255 test ( 'should handle integer multipleOf' , ( ) => {
0 commit comments