-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1360 from fecgov/release/sprint-30
Release/sprint 30
- Loading branch information
Showing
106 changed files
with
3,157 additions
and
849 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
...ns/transaction-children-list-container/transaction-children-list-container.component.html
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,3 @@ | ||
<ng-container *ngIf="transaction?.transactionType?.showGuarantorTable"> | ||
<app-transaction-guarantors [transactions]="transaction?.children"></app-transaction-guarantors> | ||
</ng-container> |
70 changes: 70 additions & 0 deletions
70
...transaction-children-list-container/transaction-children-list-container.component.spec.ts
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,70 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { ActivatedRoute } from '@angular/router'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { of } from 'rxjs'; | ||
import { provideMockStore } from '@ngrx/store/testing'; | ||
import { testMockStore } from 'app/shared/utils/unit-test.utils'; | ||
import { F3xSummary } from 'app/shared/models/f3x-summary.model'; | ||
import { ConfirmationService, MessageService } from 'primeng/api'; | ||
import { ToolbarModule } from 'primeng/toolbar'; | ||
import { TableModule } from 'primeng/table'; | ||
import { DropdownModule } from 'primeng/dropdown'; | ||
import { SharedModule } from 'app/shared/shared.module'; | ||
import { TransactionChildrenListContainerComponent } from './transaction-children-list-container.component'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { TransactionSchAService } from 'app/shared/services/transaction-schA.service'; | ||
import { SchATransaction } from 'app/shared/models/scha-transaction.model'; | ||
|
||
describe('TransactionChildrenListContainerComponent', () => { | ||
let fixture: ComponentFixture<TransactionChildrenListContainerComponent>; | ||
let component: TransactionChildrenListContainerComponent; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ToolbarModule, TableModule, SharedModule, HttpClientTestingModule, DropdownModule, FormsModule], | ||
declarations: [TransactionChildrenListContainerComponent], | ||
providers: [ | ||
MessageService, | ||
ConfirmationService, | ||
provideMockStore(testMockStore), | ||
{ | ||
provide: ActivatedRoute, | ||
useValue: { | ||
snapshot: { | ||
data: { | ||
report: F3xSummary.fromJSON({}), | ||
}, | ||
params: { | ||
reportId: '999', | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
provide: TransactionSchAService, | ||
useValue: { | ||
get: (transactionId: string) => | ||
of( | ||
SchATransaction.fromJSON({ | ||
id: transactionId, | ||
transaction_type_identifier: 'OFFSET_TO_OPERATING_EXPENDITURES', | ||
}) | ||
), | ||
getTableData: () => of([]), | ||
update: () => of([]), | ||
}, | ||
}, | ||
], | ||
}).compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TransactionChildrenListContainerComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
...ions/transaction-children-list-container/transaction-children-list-container.component.ts
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,11 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { Transaction } from 'app/shared/models/transaction.model'; | ||
|
||
@Component({ | ||
selector: 'app-transaction-children-list-container', | ||
templateUrl: 'transaction-children-list-container.component.html', | ||
styleUrls: ['../transaction.scss'], | ||
}) | ||
export class TransactionChildrenListContainerComponent { | ||
@Input() transaction?: Transaction; | ||
} |
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
Oops, something went wrong.