Skip to content

Commit

Permalink
Prior preparation of Unitary and Functional Test schemes. First Stage
Browse files Browse the repository at this point in the history
  • Loading branch information
NeftaliYagua committed Feb 3, 2025
1 parent d82681e commit f17fcc8
Show file tree
Hide file tree
Showing 70 changed files with 308 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { DatePipe } from '@angular/common';

describe('CreateStandingInstructionsComponent', () => {
let component: CreateStandingInstructionsComponent;
Expand All @@ -20,6 +21,7 @@ describe('CreateStandingInstructionsComponent', () => {
RouterTestingModule
],
providers: [
DatePipe,
{
provide: ActivatedRoute,
useValue: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CreateFinancialActivityMappingComponent } from './create-financial-activity-mapping.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule } from '@ngx-translate/core';
import { CommonModule } from '@angular/common';

describe('CreateFinancialActivityMappingComponent', () => {
let component: CreateFinancialActivityMappingComponent;
Expand All @@ -13,7 +16,10 @@ describe('CreateFinancialActivityMappingComponent', () => {
declarations: [CreateFinancialActivityMappingComponent],
imports: [
ReactiveFormsModule,
HttpClientModule
HttpClientModule,
RouterTestingModule,
TranslateModule,
CommonModule
]
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { AccountingService } from 'app/accounting/accounting.service';
import { RouterTestingModule } from '@angular/router/testing';
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';

describe('EditFinancialActivityMappingComponent', () => {
let component: EditFinancialActivityMappingComponent;
Expand All @@ -18,7 +19,11 @@ describe('EditFinancialActivityMappingComponent', () => {
HttpClientModule,
RouterTestingModule
],
providers: [AccountingService]
providers: [AccountingService],
schemas: [
CUSTOM_ELEMENTS_SCHEMA,
NO_ERRORS_SCHEMA
]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ActivatedRoute } from '@angular/router';
import { DatePipe } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';

describe('PeriodicAccrualsComponent', () => {
let component: PeriodicAccrualsComponent;
Expand All @@ -31,6 +32,10 @@ describe('PeriodicAccrualsComponent', () => {
params: of({ id: '123' })
}
}
],
schemas: [
CUSTOM_ELEMENTS_SCHEMA,
NO_ERRORS_SCHEMA
]
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { ViewChargeComponent } from './view-charge.component';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { CommonModule, DatePipe } from '@angular/common';

describe('ViewChargeComponent', () => {
let component: ViewChargeComponent;
Expand All @@ -14,7 +14,8 @@ describe('ViewChargeComponent', () => {
imports: [
HttpClientModule,
CommonModule
]
],
providers: [DatePipe]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UndoClientTransferComponent } from './undo-client-transfer.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { DatePipe } from '@angular/common';

describe('UndoClientTransferComponent', () => {
let component: UndoClientTransferComponent;
Expand All @@ -14,7 +15,8 @@ describe('UndoClientTransferComponent', () => {
imports: [
ReactiveFormsModule,
HttpClientModule
]
],
providers: [DatePipe]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { EditFamilyMemberComponent } from './edit-family-member.component';
import { ReactiveFormsModule } from '@angular/forms';
import { DatePipe } from '@angular/common';
import { CommonModule, DatePipe } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';
import { HttpClientModule } from '@angular/common/http';
import { TranslateModule, TranslateService } from '@ngx-translate/core';

describe('EditFamilyMemberComponent', () => {
let component: EditFamilyMemberComponent;
Expand All @@ -14,9 +16,15 @@ describe('EditFamilyMemberComponent', () => {
declarations: [EditFamilyMemberComponent],
imports: [
ReactiveFormsModule,
RouterTestingModule
RouterTestingModule,
HttpClientModule,
TranslateModule,
CommonModule
],
providers: [DatePipe]
providers: [
DatePipe,
TranslateService
]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { MatDialogModule, MatDialogRef } from '@angular/material/dialog';
import { DatePipe } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';

describe('IdentitiesTabComponent', () => {
let component: IdentitiesTabComponent;
Expand All @@ -13,7 +14,10 @@ describe('IdentitiesTabComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [IdentitiesTabComponent],
imports: [MatDialogModule],
imports: [
MatDialogModule,
HttpClientModule
],
providers: [
{ provide: MatDialogRef, useValue: {} },
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ViewCollateralComponent } from './view-collateral.component';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';

describe('ViewCollateralComponent', () => {
let component: ViewCollateralComponent;
Expand All @@ -10,7 +11,10 @@ describe('ViewCollateralComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ViewCollateralComponent],
imports: [HttpClientModule]
imports: [
HttpClientModule,
RouterTestingModule
]
}).compileComponents();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { IndividualCollectionSheetComponent } from './individual-collection-sheet.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

describe('IndividualCollectionSheetComponent', () => {
let component: IndividualCollectionSheetComponent;
Expand All @@ -10,7 +11,10 @@ describe('IndividualCollectionSheetComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [IndividualCollectionSheetComponent],
imports: [ReactiveFormsModule]
imports: [
ReactiveFormsModule,
HttpClientModule
]
}).compileComponents();
}));

Expand Down
7 changes: 6 additions & 1 deletion src/app/core/shell/content/content.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { ContentComponent } from './content.component';
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';

describe('ContentComponent', () => {
let component: ContentComponent;
let fixture: ComponentFixture<ContentComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ContentComponent]
declarations: [ContentComponent],
schemas: [
CUSTOM_ELEMENTS_SCHEMA,
NO_ERRORS_SCHEMA
]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FixedDepositsCashTransactionComponent } from './fixed-deposits-cash-transaction.component';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { DatePipe } from '@angular/common';

describe('FixedDepositsCashTransactionComponent', () => {
let component: FixedDepositsCashTransactionComponent;
Expand All @@ -14,6 +15,9 @@ describe('FixedDepositsCashTransactionComponent', () => {
imports: [
ReactiveFormsModule,
RouterTestingModule
],
providers: [
DatePipe
]
}).compileComponents();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PrematureCloseFixedDepositsAccountComponent } from './premature-close-fixed-deposits-account.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { CommonModule, DatePipe } from '@angular/common';

describe('PrematureCloseFixedDepositsAccountComponent', () => {
let component: PrematureCloseFixedDepositsAccountComponent;
Expand All @@ -16,7 +16,8 @@ describe('PrematureCloseFixedDepositsAccountComponent', () => {
ReactiveFormsModule,
HttpClientModule,
CommonModule
]
],
providers: [DatePipe]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ActivateRecurringDepositsAccountComponent } from './activate-recurring-
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule, DatePipe } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';

describe('ActivateRecurringDepositsAccountComponent', () => {
let component: ActivateRecurringDepositsAccountComponent;
Expand All @@ -15,7 +16,8 @@ describe('ActivateRecurringDepositsAccountComponent', () => {
imports: [
ReactiveFormsModule,
CommonModule,
HttpClientModule
HttpClientModule,
RouterTestingModule
],
providers: [DatePipe]
}).compileComponents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { CommonModule, DatePipe } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';

describe('AddChargeRecurringDepositsAccountComponent', () => {
let component: AddChargeRecurringDepositsAccountComponent;
Expand All @@ -15,6 +16,7 @@ describe('AddChargeRecurringDepositsAccountComponent', () => {
declarations: [AddChargeRecurringDepositsAccountComponent],
imports: [
ReactiveFormsModule,
HttpClientModule,
CommonModule
],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { RecurringDepositsAccountSettingsStepComponent } from './recurring-deposits-account-settings-step.component';
import { ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { CommonModule, DatePipe } from '@angular/common';

describe('RecurringDepositsAccountSettingsStepComponent', () => {
let component: RecurringDepositsAccountSettingsStepComponent;
Expand All @@ -14,7 +14,8 @@ describe('RecurringDepositsAccountSettingsStepComponent', () => {
imports: [
ReactiveFormsModule,
CommonModule
]
],
providers: [DatePipe]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EditTransactionComponent } from './edit-transaction.component';
import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { CommonModule, DatePipe } from '@angular/common';

describe('EditTransactionComponent', () => {
let component: EditTransactionComponent;
Expand All @@ -18,6 +18,7 @@ describe('EditTransactionComponent', () => {
CommonModule
],
providers: [
DatePipe,
{
provide: ActivatedRoute,
useValue: {
Expand Down
4 changes: 3 additions & 1 deletion src/app/groups/create-group/create-group.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CreateGroupComponent } from './create-group.component';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { HttpClientModule } from '@angular/common/http';

describe('CreateGroupComponent', () => {
let component: CreateGroupComponent;
Expand All @@ -13,7 +14,8 @@ describe('CreateGroupComponent', () => {
declarations: [CreateGroupComponent],
imports: [
ReactiveFormsModule,
RouterTestingModule
RouterTestingModule,
HttpClientModule
]
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { GroupAssignStaffComponent } from './group-assign-staff.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

describe('GroupAssignStaffComponent', () => {
let component: GroupAssignStaffComponent;
Expand All @@ -10,7 +11,10 @@ describe('GroupAssignStaffComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [GroupAssignStaffComponent],
imports: [ReactiveFormsModule]
imports: [
ReactiveFormsModule,
HttpClientModule
]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { LoansAccountDetailsStepComponent } from './loans-account-details-step.c
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { DatePipe } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';

describe('LoansAccountDetailsStepComponent', () => {
let component: LoansAccountDetailsStepComponent;
Expand All @@ -14,6 +15,7 @@ describe('LoansAccountDetailsStepComponent', () => {
declarations: [LoansAccountDetailsStepComponent],
imports: [
ReactiveFormsModule,
RouterTestingModule,
HttpClientModule
],
providers: [DatePipe]
Expand Down
Loading

0 comments on commit f17fcc8

Please sign in to comment.