Skip to content

Commit

Permalink
Add more metadata to mocha forms service test
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro-bulgaris-qcif committed Jun 27, 2024
1 parent 88812dc commit 3835fdf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/unit/services/FormsService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,36 @@ describe('The FormsService', function () {
metaMetadata: {
form: formName,
type: 'rdmp'
},
metadata: {
ID : 's823456',
GIVEN_NAME : 'Ant10',
OTHER_NAMES : 'Other',
FAMILY_NAME : 'Season',
PREF_NAME : 'Ant',
HONORIFIC : 'Sr',
EMAIL : '[email protected]',
JOB_TITLE : 'Assistant Professor',
NLA_PARTY_IDENTIFIER : '',
URIs : ['URI1', 'URI2', 'URI3'],
ORCID : '0000-0001-7269-2286',
PERSONAL_HOMEPAGE : '',
STAFF_PROFILE_HOMEPAGE : '',
DESCRIPTION : '',
RESEARCH_ELEMENTS_USER_ID : '12345678',
contributor_ci : {
text_full_name : 'Prof Ant10 Season',
email : '[email protected]',
orcid : 'http://orcid.org/0000-0000-0000-000'
},
contributor_data_manager : [{
text_full_name : 'Prof Ant Season',
email : '[email protected]',
orcid : 'http://orcid.org/0000-0000-0000-000'
}]
}
};

FormsService.getForm(brand, '', true, '', record).then(form => {
expect(form).to.have.property('name', formName);
done();
Expand Down

0 comments on commit 3835fdf

Please sign in to comment.