fix typo in tests dscriptions

This commit is contained in:
nanov 2019-10-13 07:29:34 +03:00
parent 383a41d3a0
commit d761b8f7a2

View File

@ -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',
); );