mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 06:34:53 +03:00
fix typo in tests dscriptions
This commit is contained in:
parent
383a41d3a0
commit
d761b8f7a2
|
@ -356,17 +356,17 @@ describe('Utils', () => {
|
||||||
expect(humanizeConstraints(itemConstraintSchema(7, 7))).toContain('7 items');
|
expect(humanizeConstraints(itemConstraintSchema(7, 7))).toContain('7 items');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have a humazined constraint when justMinItems is set, and it is equal to 1', () => {
|
it('should have a humanized constraint when justMinItems is set, and it is equal to 1', () => {
|
||||||
expect(humanizeConstraints(itemConstraintSchema(1))).toContain('non-empty');
|
expect(humanizeConstraints(itemConstraintSchema(1))).toContain('non-empty');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have a humazined constraint when multipleOf is set, and it is in format of /^0\\.0*1$/', () => {
|
it('should have a humanized constraint when multipleOf is set, and it is in format of /^0\\.0*1$/', () => {
|
||||||
expect(humanizeConstraints(itemConstraintSchema(undefined, undefined, 0.01))).toContain(
|
expect(humanizeConstraints(itemConstraintSchema(undefined, undefined, 0.01))).toContain(
|
||||||
'decimals <= 2 digits',
|
'decimals <= 2 digits',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have a humazined constraint when multipleOf is set, and it is in format other than /^0\\.0*1$/', () => {
|
it('should have a humanized constraint when multipleOf is set, and it is in format other than /^0\\.0*1$/', () => {
|
||||||
expect(humanizeConstraints(itemConstraintSchema(undefined, undefined, 0.5))).toContain(
|
expect(humanizeConstraints(itemConstraintSchema(undefined, undefined, 0.5))).toContain(
|
||||||
'multiple of 0.5',
|
'multiple of 0.5',
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user