Skip to content

Commit

Permalink
Merge pull request #2098 from fecgov/feature/1481-front-end-pac-update
Browse files Browse the repository at this point in the history
update front end generation of pac_jf_transfer_memo cpd
  • Loading branch information
toddlees authored Aug 9, 2024
2 parents 641072e + 1404602 commit b0a1642
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ describe('PAC_JF_TRANSFER_MEMO', () => {

it('#generatePurpotransaction.seDescription() should generate a string', () => {
const descrip = transaction.transactionType?.generatePurposeDescription?.(transaction);
expect(descrip).toBe('Joint Fundraising Memo: Test Org');
expect(descrip).toBe('JF Memo: Test Org');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export class PAC_JF_TRANSFER_MEMO extends SchATransactionType {
override navigationControls = CHILD_CONTROLS;

override generatePurposeDescription(transaction: SchATransaction): string {
return `Joint Fundraising Memo: ${
(transaction?.parent_transaction as SchATransaction).contributor_organization_name
}`;
return `JF Memo: ${(transaction?.parent_transaction as SchATransaction).contributor_organization_name}`;
}

getNewTransaction() {
Expand Down
2 changes: 1 addition & 1 deletion front-end/src/app/shared/utils/unit-test.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const testScheduleATransaction = SchATransaction.fromJSON({
contribution_date: '2022-08-11',
contribution_amount: 1,
contribution_aggregate: 2,
contribution_purpose_descrip: 'Joint Fundraising Memo: test',
contribution_purpose_descrip: 'JF Memo: test',
aggregation_group: AggregationGroups.GENERAL,
memo_code: true,
donor_committee_fec_id: 'C00000000',
Expand Down

0 comments on commit b0a1642

Please sign in to comment.