Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: feat: convert everything to standalone and fix build errors #54

Merged
merged 112 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
54614c2
feat: migrate everything to standalone and fix build errors
enea4science Sep 25, 2023
5e09fe6
feat: fix services lazy loading
enea4science Sep 25, 2023
c96201f
feat: fix SubmissionImportExternalCollectionComponent test
enea4science Sep 25, 2023
b0af3e7
feat: fix DsoEditMenuSectionComponent test
enea4science Sep 26, 2023
65e786b
feat: fix CollectionDropdownComponent test
enea4science Sep 26, 2023
79cbe69
feat: fix OrcidAuthComponent test
enea4science Sep 26, 2023
30b5550
feat: fix SubmissionSectionFormComponent test
enea4science Sep 26, 2023
4955d4c
feat: fix LogInPasswordComponent test
enea4science Sep 26, 2023
8b9fc00
feat: fix LogInPasswordComponent test
enea4science Sep 26, 2023
5fff867
feat: fix ClaimedTaskActionsComponent test
enea4science Sep 26, 2023
cb41f40
small change
enea4science Sep 26, 2023
89994b7
feat: fix OrcidPageComponent test
enea4science Sep 26, 2023
df9bd92
feat: fix ItemVersionsNoticeComponent test
enea4science Sep 26, 2023
ba0caff
feat: fix CollectionSearchResultGridElementComponent test
enea4science Sep 26, 2023
5379263
feat: fix SubmissionEditComponent test
enea4science Sep 26, 2023
555aebc
feat: fix GroupsRegistryComponent test
enea4science Sep 26, 2023
815c09b
feat: fix EditRelationshipComponent test
enea4science Sep 26, 2023
9f5dbef
feat: fix ItemVersionHistoryComponent test
enea4science Sep 26, 2023
0d1a472
feat: fix FullFileSectionComponent test
enea4science Sep 26, 2023
03f334f
feat: fix SubmissionFormComponent test
enea4science Sep 26, 2023
3bc02b8
feat: fix ForgotPasswordFormComponent test
enea4science Sep 26, 2023
0ddaca8
feat: fix ItemSearchResultListElementComponent test
enea4science Sep 26, 2023
a933bf5
feat: fix SubmissionImportExternalComponent test
enea4science Sep 26, 2023
d61b197
feat: fix DsDynamicTagComponent test
enea4science Sep 26, 2023
59e765b
feat: fix AlertComponent test
enea4science Sep 26, 2023
32aa335
feat: fix SupervisionOrderGroupSelectorComponent test
enea4science Sep 26, 2023
68300eb
fix broken tests
enea4science Sep 26, 2023
87af5e3
fix ProfilePageSecurityFormComponent tests
enea4science Sep 27, 2023
2ac4b43
fix ClaimedApprovedSearchResultListElementComponent tests
enea4science Sep 27, 2023
a273aaa
fix ClaimedDeclinedSearchResultListElementComponent tests
enea4science Sep 27, 2023
16e8a0a
fix ClaimedDeclinedTaskSearchResultListElementComponent tests
enea4science Sep 27, 2023
a03fe7b
fix ClaimedSearchResultListElementComponent tests
enea4science Sep 27, 2023
169b7a8
fix DsDynamicLookupRelationExternalSourceTabComponent tests
enea4science Sep 27, 2023
0692f6e
fix ExistingRelationListElementComponent tests
enea4science Sep 27, 2023
9cb379c
fix HeaderComponent tests
enea4science Sep 27, 2023
fdd08d2
fix ItemAdminSearchResultListElementComponent tests
enea4science Sep 27, 2023
45354db
fix ThumbnailComponent tests
enea4science Sep 27, 2023
0a05118
fix ComColFormComponent tests
enea4science Sep 27, 2023
7c3eccf
fix CreateCollectionParentSelectorComponent tests
enea4science Sep 27, 2023
48a16d2
fix CreateProfileComponent tests
enea4science Sep 27, 2023
ec938f7
fix CreateCommunityParentSelectorComponent tests
enea4science Sep 27, 2023
8257057
fix ContextHelpDirective tests
enea4science Sep 27, 2023
d905e71
fix AuthorizedCollectionSelectorComponent tests
enea4science Sep 27, 2023
b2ffc87
fix JournalIssueGridElementComponent tests
enea4science Sep 27, 2023
b2f04ca
fix CreateItemParentSelectorComponent tests
enea4science Sep 27, 2023
e3abb75
fix DsDynamicListComponent tests
enea4science Sep 27, 2023
1186415
fix BitstreamFormatsComponent tests
enea4science Sep 27, 2023
d1cdcbd
fix ExportMetadataSelectorComponent tests
enea4science Sep 27, 2023
f574d93
fix BulkAccessSettingsComponent tests
enea4science Sep 27, 2023
78c98c1
fix JournalComponent tests
enea4science Sep 27, 2023
42f404c
fix EPeopleRegistryComponent tests
enea4science Sep 27, 2023
a370433
fix EPersonFormComponent tests
enea4science Sep 27, 2023
a7d3df0
fix DSOSelectorComponent tests
enea4science Sep 27, 2023
924f1f6
fix SearchComponent tests
enea4science Sep 27, 2023
2764024
fix OrgUnitSearchResultListElementComponent tests
enea4science Sep 27, 2023
96928e7
fix ItemGridElementComponent tests
enea4science Sep 27, 2023
be86fea
fix FileDownloadLinkComponent tests
enea4science Sep 27, 2023
9dfa809
fix BrowseByTitlePageComponent tests
enea4science Sep 27, 2023
d7626e2
fix ItemListPreviewComponent tests
enea4science Sep 27, 2023
30f2a45
fix ResourcePolicyEditComponent tests
enea4science Sep 27, 2023
2d246e7
fix ProcessOverviewComponent tests
enea4science Sep 27, 2023
1a9c90f
fix CollectionAdminSearchResultListElementComponent tests
enea4science Sep 27, 2023
2ce2ac7
fix CommunityAdminSearchResultListElementComponent tests
enea4science Sep 27, 2023
585827b
fix ItemDeleteComponent tests
enea4science Sep 27, 2023
f3a0d2e
fix ItemSearchResultListElementComponent tests
enea4science Sep 27, 2023
ef11bd6
fix ItemMyDSpaceResultListElementComponent tests
enea4science Sep 27, 2023
3e1b05b
fix PrivacyContentComponent tests
enea4science Sep 27, 2023
663da17
fix PublicationComponent tests
enea4science Sep 27, 2023
fd34b00
fix RelatedItemsComponent tests
enea4science Sep 27, 2023
f9d1b07
fix OrgUnitSearchResultListSubmissionElementComponent tests
enea4science Sep 27, 2023
add3dc6
fix WorkflowItemSearchResultListElementComponent tests
enea4science Sep 27, 2023
f7968fe
fix WorkspaceItemSearchResultListElementComponent tests
enea4science Sep 27, 2023
0f19445
fix UntypedItemComponent tests
enea4science Sep 27, 2023
e7b5528
fix SubmissionSectionUploadFileComponent tests
enea4science Sep 28, 2023
91fc698
fix ItemPageComponent tests
enea4science Sep 28, 2023
ae0bc1a
fix MyDSpaceReloadableActionsComponent tests
enea4science Sep 28, 2023
84e1254
fix ItemVersionsComponent tests
enea4science Sep 28, 2023
2b9c3ea
fix ProfilePageMetadataFormComponent tests
enea4science Sep 28, 2023
995ea52
fix JournalIssueSearchResultListElementComponent tests
enea4science Sep 28, 2023
188320b
fix SearchFilterComponent tests
enea4science Sep 28, 2023
c449997
fix DsoEditMetadataFieldValuesComponent tests
enea4science Sep 28, 2023
38e2478
fix ProfilePageComponent tests
enea4science Sep 28, 2023
f112671
fix ContextHelpWrapperComponent tests
enea4science Sep 28, 2023
995752a
fix JournalVolumeSearchResultListElementComponent tests
enea4science Sep 28, 2023
444c35d
fix GroupFormComponent tests
enea4science Sep 28, 2023
ca4fdae
fix ItemEditBitstreamComponent tests
enea4science Sep 28, 2023
5086eaa
fix ProfileClaimItemModalComponent tests
enea4science Sep 28, 2023
5dfd812
fix ItemPageComponent tests
enea4science Sep 28, 2023
c133ff7
fix CollectionSourceComponent tests
enea4science Sep 28, 2023
52da1e0
fix OrcidSyncSettingsComponent tests
enea4science Sep 28, 2023
63fcd40
fix JournalSearchResultListElementComponent tests
enea4science Sep 28, 2023
945491b
fix CollectionCurateComponent tests
enea4science Sep 28, 2023
9e2842f
fix ItemAuthorizationsComponent tests
enea4science Sep 28, 2023
2a88c87
fix BrowseByTaxonomyPageComponent tests
enea4science Sep 28, 2023
18ee751
fix DsDynamicLookupRelationExternalSourceTabComponent tests
enea4science Sep 28, 2023
35aadf7
fix JournalVolumeListElementComponent tests
enea4science Sep 28, 2023
7d96c90
fix CollectionAuthorizationsComponent tests
enea4science Sep 28, 2023
69e5b03
fix JournalVolumeSearchResultListElementComponent tests
enea4science Sep 28, 2023
f86de22
fix ItemGridElementComponent tests
enea4science Sep 28, 2023
08c22f9
fix SubmissionSectionSherpaPoliciesComponent tests
enea4science Sep 28, 2023
3806584
fix NumberPickerComponent tests
enea4science Sep 28, 2023
35e967e
fix MetadataFieldFormComponent tests
enea4science Sep 28, 2023
01c28a3
fix ItemPageAuthorFieldComponent tests
enea4science Sep 28, 2023
4374f28
fix ThumbnailComponent tests
enea4science Sep 28, 2023
7447b64
fix JournalIssueComponent tests
enea4science Sep 28, 2023
5ba3bb2
fix MetadataRepresentationListComponent tests
enea4science Sep 28, 2023
840bad0
fix SubmissionFormCollectionComponent tests
enea4science Sep 28, 2023
4c2c5af
fix CommunityListComponent tests
enea4science Sep 28, 2023
a353ac1
fix ProjectSearchResultListElementComponent tests
enea4science Sep 28, 2023
bfe529e
fix ProcessDetailComponent tests
enea4science Sep 28, 2023
e232a7d
fix BitstreamAuthorizationsComponent tests
enea4science Sep 28, 2023
3cf3cc8
small fixes
enea4science Sep 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
}
],
"@angular-eslint/no-attribute-decorator": "error",
"@angular-eslint/no-forward-ref": "error",
"@angular-eslint/no-output-native": "warn",
"@angular-eslint/no-output-on-prefix": "warn",
"@angular-eslint/no-conflicting-lifecycle": "warn",
Expand Down
58 changes: 28 additions & 30 deletions src/app/access-control/access-control.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,34 @@ export const ValidateEmailErrorStateMatcher: DynamicErrorMessagesMatcher =
};

@NgModule({
imports: [
CommonModule,
SharedModule,
RouterModule,
AccessControlRoutingModule,
FormModule,
NgbAccordionModule,
SearchModule,
AccessControlFormModule,
],
exports: [
MembersListComponent,
],
declarations: [
EPeopleRegistryComponent,
EPersonFormComponent,
GroupsRegistryComponent,
GroupFormComponent,
SubgroupsListComponent,
MembersListComponent,
BulkAccessComponent,
BulkAccessBrowseComponent,
BulkAccessSettingsComponent,
],
providers: [
{
provide: DYNAMIC_ERROR_MESSAGES_MATCHER,
useValue: ValidateEmailErrorStateMatcher
},
]
imports: [
CommonModule,
SharedModule,
RouterModule,
AccessControlRoutingModule,
FormModule,
NgbAccordionModule,
SearchModule,
AccessControlFormModule,
EPeopleRegistryComponent,
EPersonFormComponent,
GroupsRegistryComponent,
GroupFormComponent,
SubgroupsListComponent,
MembersListComponent,
BulkAccessComponent,
BulkAccessBrowseComponent,
BulkAccessSettingsComponent
],
exports: [
MembersListComponent,
],
providers: [
{
provide: DYNAMIC_ERROR_MESSAGES_MATCHER,
useValue: ValidateEmailErrorStateMatcher
},
]
})
/**
* This module handles all components related to the access control pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ describe('BulkAccessBrowseComponent', () => {
const selectableListService = jasmine.createSpyObj('SelectableListService', ['getSelectableList', 'deselectAll']);
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
imports: [
NgbAccordionModule,
NgbNavModule,
TranslateModule.forRoot()
],
declarations: [BulkAccessBrowseComponent],
providers: [ { provide: SelectableListService, useValue: selectableListService }, ],
schemas: [
TranslateModule.forRoot(),
BulkAccessBrowseComponent
],
providers: [{ provide: SelectableListService, useValue: selectableListService },],
schemas: [
NO_ERRORS_SCHEMA
]
}).compileComponents();
]
}).compileComponents();
}));

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ import { createSuccessfulRemoteDataObject } from '../../../shared/remote-data.ut
import { PageInfo } from '../../../core/shared/page-info.model';
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
import { hasValue } from '../../../shared/empty.util';
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
import { AsyncPipe, NgForOf, NgIf } from '@angular/common';
import { NgbAccordionModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
import { ThemedSearchComponent } from '../../../shared/search/themed-search.component';
import { BrowserOnlyPipe } from '../../../shared/utils/browser-only.pipe';
import { NgxPaginationModule } from 'ngx-pagination';
import {
SelectableListItemControlComponent
} from '../../../shared/object-collection/shared/selectable-list-item-control/selectable-list-item-control.component';
import {
ListableObjectComponentLoaderComponent
} from '../../../shared/object-collection/shared/listable-object/listable-object-component-loader.component';

@Component({
selector: 'ds-bulk-access-browse',
Expand All @@ -24,7 +37,22 @@ import { hasValue } from '../../../shared/empty.util';
provide: SEARCH_CONFIG_SERVICE,
useClass: SearchConfigurationService
}
]
],
imports: [
PaginationComponent,
AsyncPipe,
NgbAccordionModule,
TranslateModule,
NgIf,
NgbNavModule,
ThemedSearchComponent,
BrowserOnlyPipe,
NgForOf,
NgxPaginationModule,
SelectableListItemControlComponent,
ListableObjectComponentLoaderComponent
],
standalone: true
})
export class BulkAccessBrowseComponent implements OnInit, OnDestroy {

Expand Down
16 changes: 8 additions & 8 deletions src/app/access-control/bulk-access/bulk-access.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@ describe('BulkAccessComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
imports: [
RouterTestingModule,
TranslateModule.forRoot()
],
declarations: [ BulkAccessComponent ],
providers: [
TranslateModule.forRoot(),
BulkAccessComponent
],
providers: [
{ provide: BulkAccessControlService, useValue: bulkAccessControlServiceMock },
{ provide: NotificationsService, useValue: NotificationsServiceStub },
{ provide: SelectableListService, useValue: selectableListServiceMock }
],
schemas: [NO_ERRORS_SCHEMA]
})
],
schemas: [NO_ERRORS_SCHEMA]
})
.compileComponents();
});

Expand Down
10 changes: 9 additions & 1 deletion src/app/access-control/bulk-access/bulk-access.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ import { BulkAccessSettingsComponent } from './settings/bulk-access-settings.com
import { BulkAccessControlService } from '../../shared/access-control-form-container/bulk-access-control.service';
import { SelectableListState } from '../../shared/object-list/selectable-list/selectable-list.reducer';
import { SelectableListService } from '../../shared/object-list/selectable-list/selectable-list.service';
import { TranslateModule } from '@ngx-translate/core';
import { BulkAccessBrowseComponent } from './browse/bulk-access-browse.component';

@Component({
selector: 'ds-bulk-access',
templateUrl: './bulk-access.component.html',
styleUrls: ['./bulk-access.component.scss']
styleUrls: ['./bulk-access.component.scss'],
imports: [
TranslateModule,
BulkAccessSettingsComponent,
BulkAccessBrowseComponent
],
standalone: true
})
export class BulkAccessComponent implements OnInit {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
import { BulkAccessSettingsComponent } from './bulk-access-settings.component';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import {
AccessControlFormContainerComponent
} from '../../../shared/access-control-form-container/access-control-form-container.component';

describe('BulkAccessSettingsComponent', () => {
let component: BulkAccessSettingsComponent;
Expand Down Expand Up @@ -41,10 +44,13 @@ describe('BulkAccessSettingsComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [NgbAccordionModule, TranslateModule.forRoot()],
declarations: [BulkAccessSettingsComponent],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
imports: [NgbAccordionModule, TranslateModule.forRoot(), BulkAccessSettingsComponent],
schemas: [NO_ERRORS_SCHEMA]
})
.overrideComponent(BulkAccessSettingsComponent, {
remove: { imports: [AccessControlFormContainerComponent]}
})
.compileComponents();
});

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@ import { Component, ViewChild } from '@angular/core';
import {
AccessControlFormContainerComponent
} from '../../../shared/access-control-form-container/access-control-form-container.component';
import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
import { NgIf } from '@angular/common';

@Component({
selector: 'ds-bulk-access-settings',
templateUrl: 'bulk-access-settings.component.html',
styleUrls: ['./bulk-access-settings.component.scss'],
exportAs: 'dsBulkSettings'
exportAs: 'dsBulkSettings',
imports: [
NgbAccordionModule,
TranslateModule,
NgIf,
AccessControlFormContainerComponent
],
standalone: true
})
export class BulkAccessSettingsComponent {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ import { RequestService } from '../../core/data/request.service';
import { PaginationService } from '../../core/pagination/pagination.service';
import { PaginationServiceStub } from '../../shared/testing/pagination-service.stub';
import { FindListOptions } from '../../core/data/find-list-options.model';
import { EPersonFormComponent } from './eperson-form/eperson-form.component';
import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.component';
import { PaginationComponent } from '../../shared/pagination/pagination.component';

describe('EPeopleRegistryComponent', () => {
let component: EPeopleRegistryComponent;
Expand Down Expand Up @@ -123,26 +126,34 @@ describe('EPeopleRegistryComponent', () => {

paginationService = new PaginationServiceStub();
TestBed.configureTestingModule({
imports: [CommonModule, NgbModule, FormsModule, ReactiveFormsModule, BrowserModule,
imports: [CommonModule, NgbModule, FormsModule, ReactiveFormsModule, BrowserModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useClass: TranslateLoaderMock
}
}),
],
declarations: [EPeopleRegistryComponent],
loader: {
provide: TranslateLoader,
useClass: TranslateLoaderMock
}
}), EPeopleRegistryComponent],
providers: [
{ provide: EPersonDataService, useValue: ePersonDataServiceStub },
{ provide: NotificationsService, useValue: new NotificationsServiceStub() },
{ provide: AuthorizationDataService, useValue: authorizationService },
{ provide: FormBuilderService, useValue: builderService },
{ provide: Router, useValue: new RouterStub() },
{ provide: RequestService, useValue: jasmine.createSpyObj('requestService', ['removeByHrefSubstring']) },
{ provide: PaginationService, useValue: paginationService }
{provide: EPersonDataService, useValue: ePersonDataServiceStub},
{provide: NotificationsService, useValue: new NotificationsServiceStub()},
{provide: AuthorizationDataService, useValue: authorizationService},
{provide: FormBuilderService, useValue: builderService},
{provide: Router, useValue: new RouterStub()},
{provide: RequestService, useValue: jasmine.createSpyObj('requestService', ['removeByHrefSubstring'])},
{provide: PaginationService, useValue: paginationService}
],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
})
.overrideComponent(EPeopleRegistryComponent, {
remove: {
imports: [
EPersonFormComponent,
ThemedLoadingComponent,
PaginationComponent,
]
}
})
.compileComponents();
}));

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { UntypedFormBuilder } from '@angular/forms';
import { ReactiveFormsModule, UntypedFormBuilder } from '@angular/forms';
import { Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { BehaviorSubject, combineLatest, Observable, Subscription } from 'rxjs';
import { map, switchMap, take } from 'rxjs/operators';
import { buildPaginatedList, PaginatedList } from '../../core/data/paginated-list.model';
Expand All @@ -22,10 +22,26 @@ import { PageInfo } from '../../core/shared/page-info.model';
import { NoContent } from '../../core/shared/NoContent.model';
import { PaginationService } from '../../core/pagination/pagination.service';
import { DSONameService } from '../../core/breadcrumbs/dso-name.service';
import { AsyncPipe, NgClass, NgForOf, NgIf } from '@angular/common';
import { EPersonFormComponent } from './eperson-form/eperson-form.component';
import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.component';
import { PaginationComponent } from '../../shared/pagination/pagination.component';

@Component({
selector: 'ds-epeople-registry',
templateUrl: './epeople-registry.component.html',
imports: [
TranslateModule,
AsyncPipe,
NgIf,
EPersonFormComponent,
ReactiveFormsModule,
ThemedLoadingComponent,
PaginationComponent,
NgClass,
NgForOf
],
standalone: true
})
/**
* A component used for managing all existing epeople within the repository.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ import { PaginationServiceStub } from '../../../shared/testing/pagination-servic
import { FindListOptions } from '../../../core/data/find-list-options.model';
import { ValidateEmailNotTaken } from './validators/email-taken.validator';
import { EpersonRegistrationService } from '../../../core/data/eperson-registration.service';
import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
import { FormComponent } from '../../../shared/form/form.component';

describe('EPersonFormComponent', () => {
let component: EPersonFormComponent;
Expand Down Expand Up @@ -183,29 +186,31 @@ describe('EPersonFormComponent', () => {

paginationService = new PaginationServiceStub();
TestBed.configureTestingModule({
imports: [CommonModule, NgbModule, FormsModule, ReactiveFormsModule, BrowserModule,
imports: [CommonModule, NgbModule, FormsModule, ReactiveFormsModule, BrowserModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useClass: TranslateLoaderMock
}
}),
],
declarations: [EPersonFormComponent],
providers: [
loader: {
provide: TranslateLoader,
useClass: TranslateLoaderMock
}
}), EPersonFormComponent],
providers: [
{ provide: EPersonDataService, useValue: ePersonDataServiceStub },
{ provide: GroupDataService, useValue: groupsDataService },
{ provide: FormBuilderService, useValue: builderService },
{ provide: NotificationsService, useValue: new NotificationsServiceStub() },
{ provide: AuthService, useValue: authService },
{ provide: AuthorizationDataService, useValue: authorizationService },
{ provide: PaginationService, useValue: paginationService },
{ provide: RequestService, useValue: jasmine.createSpyObj('requestService', ['removeByHrefSubstring'])},
{ provide: RequestService, useValue: jasmine.createSpyObj('requestService', ['removeByHrefSubstring']) },
{ provide: EpersonRegistrationService, useValue: epersonRegistrationService },
EPeopleRegistryComponent
],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
],
schemas: [NO_ERRORS_SCHEMA]
})
.overrideComponent(EPersonFormComponent, {
remove: { imports: [ ThemedLoadingComponent, PaginationComponent,FormComponent]}
})
.compileComponents();
}));

epersonRegistrationService = jasmine.createSpyObj('epersonRegistrationService', {
Expand Down
Loading