-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dst1957-replace-deprecated-color
- Loading branch information
Showing
63 changed files
with
1,190 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,3 @@ if [ ! -d ../vets-api ]; then | |
else | ||
echo "Repo vets-api already cloned." | ||
fi | ||
|
||
# @TODO: if these are not needed anymore, remove. | ||
# git clone [email protected]:department-of-veterans-affairs/vets-json-schema.git | ||
# git clone [email protected]:department-of-veterans-affairs/veteran-facing-services-tools.git | ||
# git clone [email protected]:department-of-veterans-affairs/vets-api.git | ||
# git clone [email protected]:department-of-veterans-affairs/vets-api-mockdata.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/applications/caregivers/tests/definitions/UIDefinitions/sharedUI.unit.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { expect } from 'chai'; | ||
|
||
import { customFieldSchemaUI } from '../../../definitions/UIDefinitions/sharedUI'; | ||
|
||
describe('customFieldSchemaUI', () => { | ||
it('should extend the specified field with the given UI key-value pair', () => { | ||
const originalUI = { | ||
first: { 'ui:title': 'First Name' }, | ||
last: { 'ui:title': 'Last Name' }, | ||
}; | ||
|
||
const extendedUI = customFieldSchemaUI( | ||
originalUI, | ||
'first', | ||
'ui:description', | ||
'Enter your first name', | ||
); | ||
|
||
expect(extendedUI.first).to.have.property('ui:title', 'First Name'); | ||
expect(extendedUI.first).to.have.property( | ||
'ui:description', | ||
'Enter your first name', | ||
); | ||
expect(extendedUI.last).to.have.property('ui:title', 'Last Name'); | ||
}); | ||
|
||
it('should return the original UI if the field name does not exist', () => { | ||
const originalUI = { | ||
first: { 'ui:title': 'First Name' }, | ||
}; | ||
|
||
const extendedUI = customFieldSchemaUI( | ||
originalUI, | ||
'somethingElse', | ||
'ui:description', | ||
'Enter your middle name', | ||
); | ||
|
||
expect(extendedUI).to.deep.equal(originalUI); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.