remove char limits

This commit is contained in:
2023-02-22 00:56:56 -05:00
parent ae7db3ae3d
commit ccdff1c7b9
14 changed files with 34 additions and 33 deletions

View File

@@ -20,11 +20,12 @@ export const checkFieldConstraintSize = (
to.not.throw();
});
it(`Should fail to write more than ${limit} characters to ${fieldName}`,
() => {
expect(() => eval(`${fieldName} = 'x'.repeat(${limit + 1})`)).
to.throw().with.property('errorCode', expectedError);
});
// We removed all character limits
// it(`Should fail to write more than ${limit} characters to ${fieldName}`,
// () => {
// expect(() => eval(`${fieldName} = 'x'.repeat(${limit + 1})`)).
// to.throw().with.property('errorCode', expectedError);
// });
});
};