-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add submission types to search results
- Loading branch information
Showing
7 changed files
with
249 additions
and
1 deletion.
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
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
38 changes: 38 additions & 0 deletions
38
...applications/representative-appoint/tests/utilities/getFormNumberFromEntity.unit.spec.jsx
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,38 @@ | ||
import { expect } from 'chai'; | ||
Check warning on line 1 in src/applications/representative-appoint/tests/utilities/getFormNumberFromEntity.unit.spec.jsx GitHub Actions / App Isolation AnnotationsStaged Continuous Deployment App Isolation Conflict
|
||
|
||
import { getFormNumberFromEntity } from '../../utilities/helpers'; | ||
|
||
describe('getFormNumberFromEntity', () => { | ||
it('should return "21-22" when entity type is organization', () => { | ||
const mockFormData = { type: 'organization' }; | ||
const result = getFormNumberFromEntity(mockFormData); | ||
expect(result).to.equal('21-22'); | ||
}); | ||
|
||
it('should return "21-22a" when individual type is attorney', () => { | ||
const mockFormData = { | ||
type: 'individual', | ||
attributes: { individualType: 'attorney' }, | ||
}; | ||
const result = getFormNumberFromEntity(mockFormData); | ||
expect(result).to.equal('21-22a'); | ||
}); | ||
|
||
it('should return "21-22a" when individual type is claimsAgent', () => { | ||
const mockFormData = { | ||
type: 'individual', | ||
attributes: { individualType: 'claimsAgent' }, | ||
}; | ||
const result = getFormNumberFromEntity(mockFormData); | ||
expect(result).to.equal('21-22a'); | ||
}); | ||
|
||
it('should return "21-22" when individual type is representative', () => { | ||
const mockFormData = { | ||
type: 'individual', | ||
attributes: { individualType: 'representative' }, | ||
}; | ||
const result = getFormNumberFromEntity(mockFormData); | ||
expect(result).to.equal('21-22'); | ||
}); | ||
}); |
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