More test cases

This commit is contained in:
Jonathan Putney
2019-11-12 14:59:01 -05:00
parent b294496cb5
commit b427943036
6 changed files with 326 additions and 56 deletions

View File

@@ -134,7 +134,6 @@ export const checkValidValues = (
{
cmi,
fieldName,
expectedError,
validValues,
invalidValues,
}) => {
@@ -154,7 +153,7 @@ export const checkValidValues = (
it(`Should fail to write '${invalidValues[idx]}' to ${fieldName}`,
() => {
expect(() => eval(`${fieldName} = '${invalidValues[idx]}'`)).
to.throw(expectedError + '');
to.throw();
});
}
}