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 5, 2025
1 parent 4b55b81 commit 50e0a8d
Show file tree
Hide file tree
Showing 55 changed files with 305 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

describe('ViewAccountTransferComponent', () => {
let component: ViewAccountTransferComponent;
Expand All @@ -24,6 +25,9 @@ describe('ViewAccountTransferComponent', () => {
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
]
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { CreateGlAccountComponent } from './create-gl-account.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { OverlayModule } from '@angular/cdk/overlay';
import { CommonModule } from '@angular/common';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateFakeLoader } from '@ngx-translate/core';

describe('CreateGlAccountComponent', () => {
let component: CreateGlAccountComponent;
Expand All @@ -15,7 +19,13 @@ describe('CreateGlAccountComponent', () => {
imports: [
ReactiveFormsModule,
HttpClientModule,
RouterTestingModule
RouterTestingModule,
OverlayModule,
CommonModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

]
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CommonModule } from '@angular/common';
import { CommonModule, DatePipe } from '@angular/common';

import { FrequentPostingsComponent } from './frequent-postings.component';
import { ReactiveFormsModule } from '@angular/forms';
Expand All @@ -18,6 +18,9 @@ describe('FrequentPostingsComponent', () => {
HttpClientModule,
RouterTestingModule,
CommonModule
],
providers: [
DatePipe
]
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateFakeLoader } from '@ngx-translate/core';

describe('ViewProvisioningEntryComponent', () => {
let component: ViewProvisioningEntryComponent;
Expand All @@ -17,7 +19,11 @@ describe('ViewProvisioningEntryComponent', () => {
HttpClientModule,
RouterTestingModule,
CommonModule,
ReactiveFormsModule
ReactiveFormsModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

]
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { CreateCenterComponent } from './create-center.component';
import { HttpClientModule } from '@angular/common/http';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { DatePipe } from '@angular/common';

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('ClientGeneralStepComponent', () => {
schemas: [
CUSTOM_ELEMENTS_SCHEMA
],
providers: [TranslateService]
providers: [DatePipe]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ReactivateClientComponent } from './reactivate-client.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { DatePipe } from '@angular/common';

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { RejectClientTransferComponent } from './reject-client-transfer.componen
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { DatePipe } from '@angular/common';
import { CommonModule } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateFakeLoader } from '@ngx-translate/core';

describe('RejectClientTransferComponent', () => {
let component: RejectClientTransferComponent;
Expand All @@ -14,7 +18,13 @@ describe('RejectClientTransferComponent', () => {
declarations: [RejectClientTransferComponent],
imports: [
ReactiveFormsModule,
HttpClientModule
HttpClientModule,
CommonModule,
RouterTestingModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

],
providers: [
DatePipe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core';

import { UploadImageDialogComponent } from './upload-image-dialog.component';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
Expand All @@ -18,7 +19,11 @@ describe('UploadImageDialogComponent', () => {
ReactiveFormsModule,
RouterTestingModule,
HttpClientModule,
CommonModule
CommonModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

],
providers: [
{ provide: MatDialogRef, useValue: {} },
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 { ActivateFixedDepositsAccountComponent } from './activate-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('ActivateFixedDepositsAccountComponent', () => {
let component: ActivateFixedDepositsAccountComponent;
Expand All @@ -16,7 +16,8 @@ describe('ActivateFixedDepositsAccountComponent', () => {
ReactiveFormsModule,
HttpClientModule,
CommonModule
]
],
providers: [DatePipe]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

import { RecurringDepositsAccountPreviewStepComponent } from './recurring-deposits-account-preview-step.component';
import {
Expand All @@ -22,7 +23,8 @@ describe('RecurringDepositsAccountPreviewStepComponent', () => {
})

],
providers: []
providers: [],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
}));

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

import { RecurringDepositsAccountTermsStepComponent } from './recurring-deposits-account-terms-step.component';
import { ReactiveFormsModule } from '@angular/forms';
import { DatePipe } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { TranslateModule, TranslateLoader, TranslateFakeLoader } from '@ngx-translate/core';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

describe('RecurringDepositsAccountTermsStepComponent', () => {
let component: RecurringDepositsAccountTermsStepComponent;
Expand All @@ -25,7 +25,8 @@ describe('RecurringDepositsAccountTermsStepComponent', () => {
})

],
providers: [DatePipe]
providers: [DatePipe],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { TranslateModule, TranslateLoader, TranslateFakeLoader } from '@ngx-translate/core';
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

describe('ManageGroupMembersComponent', () => {
let component: ManageGroupMembersComponent;
Expand All @@ -28,7 +29,8 @@ describe('ManageGroupMembersComponent', () => {
providers: [
{ provide: MatDialogRef, useValue: {} },
{ provide: MAT_DIALOG_DATA, useValue: {} }
]
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { AmountCollectedPieComponent } from './amount-collected-pie.component';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateFakeLoader } from '@ngx-translate/core';

describe('AmountCollectedPieComponent', () => {
let component: AmountCollectedPieComponent;
Expand All @@ -13,8 +17,14 @@ describe('AmountCollectedPieComponent', () => {
TestBed.configureTestingModule({
declarations: [AmountCollectedPieComponent],
imports: [
ReactiveFormsModule,
RouterTestingModule,
HttpClientModule,
RouterTestingModule
CommonModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateFakeLoader } from '@ngx-translate/core';
import { DatePipe } from '@angular/common';

describe('EditTransactionComponent', () => {
let component: EditTransactionComponent;
Expand All @@ -24,7 +25,8 @@ describe('EditTransactionComponent', () => {
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

]
],
providers: [DatePipe]
}).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 { ViewAdhocQueryComponent } from './view-adhoc-query.component';
import { HttpClientModule } from '@angular/common/http';
import { DatePipe } from '@angular/common';

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

Expand Down
4 changes: 4 additions & 0 deletions src/app/organization/currencies/currencies.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 { CurrenciesComponent } from './currencies.component';
import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { OverlayModule } from '@angular/cdk/overlay';

describe('CurrenciesComponent', () => {
let component: CurrenciesComponent;
Expand All @@ -11,6 +12,9 @@ describe('CurrenciesComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [CurrenciesComponent],
imports: [
OverlayModule
],
providers: [
{
provide: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { EditEmployeeComponent } from './edit-employee.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { DatePipe } from '@angular/common';
import { CommonModule } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateFakeLoader } from '@ngx-translate/core';

describe('EditEmployeeComponent', () => {
let component: EditEmployeeComponent;
Expand All @@ -14,7 +18,13 @@ describe('EditEmployeeComponent', () => {
declarations: [EditEmployeeComponent],
imports: [
ReactiveFormsModule,
HttpClientModule
HttpClientModule,
CommonModule,
RouterTestingModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

],
providers: [DatePipe]
}).compileComponents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { CreateOfficeComponent } from './create-office.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { DatePipe } from '@angular/common';
import { CommonModule } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateFakeLoader } from '@ngx-translate/core';

describe('CreateOfficeComponent', () => {
let component: CreateOfficeComponent;
Expand All @@ -14,7 +18,13 @@ describe('CreateOfficeComponent', () => {
declarations: [CreateOfficeComponent],
imports: [
ReactiveFormsModule,
HttpClientModule
HttpClientModule,
CommonModule,
RouterTestingModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})

],
providers: [DatePipe]
}).compileComponents();
Expand Down
Loading

0 comments on commit 50e0a8d

Please sign in to comment.