mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +03:00
style: code clean up
This commit is contained in:
parent
c6ba460ebe
commit
e9593e0e6d
|
@ -412,10 +412,10 @@ describe('Utils', () => {
|
||||||
|
|
||||||
describe('openapi humanizeConstraints', () => {
|
describe('openapi humanizeConstraints', () => {
|
||||||
const itemConstraintSchema = (
|
const itemConstraintSchema = (
|
||||||
min: number | undefined = undefined,
|
min?: number,
|
||||||
max: number | undefined = undefined,
|
max?: number,
|
||||||
multipleOf: number | undefined = undefined,
|
multipleOf?: number,
|
||||||
uniqueItems?: boolean,
|
uniqueItems?: boolean
|
||||||
) => ({ type: 'array', minItems: min, maxItems: max, multipleOf, uniqueItems });
|
) => ({ type: 'array', minItems: min, maxItems: max, multipleOf, uniqueItems });
|
||||||
|
|
||||||
it('should not have a humanized constraint without schema constraints', () => {
|
it('should not have a humanized constraint without schema constraints', () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user