fix: corrected JSDoc comments

This commit is contained in:
StevanFreeborn
2023-02-02 22:59:07 -06:00
parent 923cb27c33
commit 54b0668e4a
3 changed files with 17 additions and 14 deletions
+12 -12
View File
@@ -20,6 +20,18 @@ describe('Field', function () {
).to.not.throw();
});
it('should throw an error when the type parameter is not a valid value', function () {
expect(
() => new Field(1, 1, 'Text Field', 'Invalid', 'Enabled', true, false)
).to.throw();
});
it('should throw an error when the status parameter is not a valid value', function () {
expect(
() => new Field(1, 1, 'Text Field', 'Text', 'Unabled', true, false)
).to.throw();
});
it('should create a new instance of the Field class with the correct properties and values', function () {
const field = new Field(1, 1, 'Text Field', 'Text', 'Enabled', true, false);
@@ -38,16 +50,4 @@ describe('Field', function () {
expect(field.isRequired).to.equal(true);
expect(field.isUnique).to.equal(false);
});
it('should throw an error when the type parameter is not a valid value', function () {
expect(
() => new Field(1, 1, 'Text Field', 'Invalid', 'Enabled', true, false)
).to.throw();
});
it('should throw an error when the status parameter is not a valid value', function () {
expect(
() => new Field(1, 1, 'Text Field', 'Text', 'Unabled', true, false)
).to.throw();
});
});