From f14b00854612737421d52045501b12c495a5d856 Mon Sep 17 00:00:00 2001 From: Oprysk Date: Wed, 24 Nov 2021 16:05:11 +0200 Subject: [PATCH] update test coverage --- src/utils/__tests__/openapi.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/__tests__/openapi.test.ts b/src/utils/__tests__/openapi.test.ts index 33d45c9c..25f4c530 100644 --- a/src/utils/__tests__/openapi.test.ts +++ b/src/utils/__tests__/openapi.test.ts @@ -468,10 +468,12 @@ describe('Utils', () => { it('should return correct min value', () => { expect(humanizeNumberRange({ minimum: 5, exclusiveMinimum: 10 })).toEqual('> 5'); + expect(humanizeNumberRange({ minimum: -5, exclusiveMinimum: -10 })).toEqual('> -10'); }); it('should return correct max value', () => { expect(humanizeNumberRange({ maximum: 10, exclusiveMaximum: 15 })).toEqual('< 15'); + expect(humanizeNumberRange({ maximum: -10, exclusiveMaximum: -15 })).toEqual('< -10'); }); it('should return undefined', () => {