Skip to content

Commit

Permalink
vebt-1226 updated form 22-10216 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wafimohamed committed Feb 21, 2025
1 parent 65e48bc commit a227933
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/schemas/22-10216/schema.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,32 @@ const schemaWithoutRequired = cloneDeep(schema);
const schemaTestHelper = new SchemaTestHelper(schemaWithoutRequired);

const testData = {
institutionOfficial: {
valid: [
{
first: 'John',
last: 'Doe',
title: 'President',
},
],
invalid: [
{
first: 'John',
last: 'Doe',
title: null,
},
{
first: '',
last: 'Doe',
title: null,
},
{
first: 'John',
last: '',
title: 'some title',
},
],
},
institutionDetails: {
valid: [
{
Expand Down Expand Up @@ -50,9 +76,11 @@ const testData = {
describe('10216 schema', () => {
it('should have required fields', () => {
expect(schema.properties.institutionDetails.required).to.deep.equal([
'certifyingOfficial',
'institutionName',
'facilityCode',
'termStartDate',
'statementOfTruthSignature',
]);
expect(schema.properties.studentRatioCalcChapter.required).to.deep.equal([
'beneficiaryStudent',
Expand Down

0 comments on commit a227933

Please sign in to comment.