mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-191] run migration script
This commit is contained in:
@@ -14,7 +14,7 @@ describe('SubComColSectionComponent', () => {
|
|||||||
activatedRoute.parent = new ActivatedRouteStub();
|
activatedRoute.parent = new ActivatedRouteStub();
|
||||||
|
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [SubComColSectionComponent],
|
imports: [SubComColSectionComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: ActivatedRoute, useValue: activatedRoute },
|
{ provide: ActivatedRoute, useValue: activatedRoute },
|
||||||
]
|
]
|
||||||
|
@@ -14,8 +14,7 @@ describe('NotifyInfoComponent', () => {
|
|||||||
notifyInfoServiceSpy = jasmine.createSpyObj('NotifyInfoService', ['getCoarLdnLocalInboxUrls']);
|
notifyInfoServiceSpy = jasmine.createSpyObj('NotifyInfoService', ['getCoarLdnLocalInboxUrls']);
|
||||||
|
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [TranslateModule.forRoot()],
|
imports: [TranslateModule.forRoot(), NotifyInfoComponent],
|
||||||
declarations: [NotifyInfoComponent],
|
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: NotifyInfoService, useValue: notifyInfoServiceSpy }
|
{ provide: NotifyInfoService, useValue: notifyInfoServiceSpy }
|
||||||
]
|
]
|
||||||
|
@@ -21,8 +21,7 @@ describe('NotifyRequestsStatusComponent', () => {
|
|||||||
getNotifyRequestsStatus:() => createSuccessfulRemoteDataObject$(mock)
|
getNotifyRequestsStatus:() => createSuccessfulRemoteDataObject$(mock)
|
||||||
};
|
};
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [TranslateModule.forRoot()],
|
imports: [TranslateModule.forRoot(), NotifyRequestsStatusComponent],
|
||||||
declarations: [NotifyRequestsStatusComponent],
|
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: NotifyRequestsStatusDataService, useValue: notifyInfoServiceSpy }
|
{ provide: NotifyRequestsStatusDataService, useValue: notifyInfoServiceSpy }
|
||||||
]
|
]
|
||||||
|
@@ -25,8 +25,7 @@ describe('RequestStatusAlertBoxComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [TranslateModule.forRoot()],
|
imports: [TranslateModule.forRoot(), RequestStatusAlertBoxComponent]
|
||||||
declarations: [RequestStatusAlertBoxComponent]
|
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -37,8 +37,7 @@ describe('QaEventNotificationComponent', () => {
|
|||||||
getSourcesByTarget: () => objPL
|
getSourcesByTarget: () => objPL
|
||||||
};
|
};
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [CommonModule, TranslateModule.forRoot()],
|
imports: [CommonModule, TranslateModule.forRoot(), QaEventNotificationComponent, SplitPipe],
|
||||||
declarations: [QaEventNotificationComponent, SplitPipe],
|
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: QualityAssuranceSourceDataService, useValue: qualityAssuranceSourceDataServiceStub },
|
{ provide: QualityAssuranceSourceDataService, useValue: qualityAssuranceSourceDataServiceStub },
|
||||||
{ provide: RequestService, useValue: {} },
|
{ provide: RequestService, useValue: {} },
|
||||||
|
@@ -18,7 +18,7 @@ describe('MyDspaceQaEventsNotificationsComponent', () => {
|
|||||||
getSources: () => obj
|
getSources: () => obj
|
||||||
};
|
};
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [MyDspaceQaEventsNotificationsComponent],
|
imports: [MyDspaceQaEventsNotificationsComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: QualityAssuranceSourceDataService, useValue: qualityAssuranceSourceDataServiceStub }
|
{ provide: QualityAssuranceSourceDataService, useValue: qualityAssuranceSourceDataServiceStub }
|
||||||
]
|
]
|
||||||
|
@@ -124,8 +124,8 @@ describe('ProcessOverviewTableComponent', () => {
|
|||||||
init();
|
init();
|
||||||
|
|
||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
declarations: [ProcessOverviewTableComponent, NgbCollapse],
|
declarations: [NgbCollapse],
|
||||||
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([]), VarDirective],
|
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([]), VarDirective, ProcessOverviewTableComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: ProcessOverviewService, useValue: processOverviewService },
|
{ provide: ProcessOverviewService, useValue: processOverviewService },
|
||||||
{ provide: ProcessDataService, useValue: processService },
|
{ provide: ProcessDataService, useValue: processService },
|
||||||
|
@@ -9,7 +9,7 @@ describe('QualityAssuranceSourcePageComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [QualityAssuranceSourcePageComponent],
|
imports: [QualityAssuranceSourcePageComponent],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
|
@@ -40,9 +40,8 @@ describe('ComcolBrowseByComponent', () => {
|
|||||||
themeService = getMockThemeService();
|
themeService = getMockThemeService();
|
||||||
|
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [BrowseBySwitcherComponent],
|
imports: [BrowseBySwitcherComponent, ComcolBrowseByComponent],
|
||||||
declarations: [ComcolBrowseByComponent,
|
declarations: [DynamicComponentLoaderDirective],
|
||||||
DynamicComponentLoaderDirective],
|
|
||||||
providers: [
|
providers: [
|
||||||
BrowseByTestComponent,
|
BrowseByTestComponent,
|
||||||
{ provide: ActivatedRoute, useValue: activatedRoute },
|
{ provide: ActivatedRoute, useValue: activatedRoute },
|
||||||
|
@@ -15,7 +15,7 @@ describe('ComcolSearchSectionComponent', () => {
|
|||||||
route = new ActivatedRouteStub();
|
route = new ActivatedRouteStub();
|
||||||
|
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [ComcolSearchSectionComponent],
|
imports: [ComcolSearchSectionComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: APP_CONFIG, useValue: environment },
|
{ provide: APP_CONFIG, useValue: environment },
|
||||||
{ provide: ActivatedRoute, useValue: route },
|
{ provide: ActivatedRoute, useValue: route },
|
||||||
|
@@ -33,8 +33,7 @@ describe('AdvancedSearchComponent', () => {
|
|||||||
};
|
};
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [AdvancedSearchComponent],
|
imports: [FormsModule, RouterTestingModule, TranslateModule.forRoot(), BrowserAnimationsModule, ReactiveFormsModule, BrowserOnlyMockPipe, AdvancedSearchComponent],
|
||||||
imports: [FormsModule, RouterTestingModule, TranslateModule.forRoot(), BrowserAnimationsModule, ReactiveFormsModule, BrowserOnlyMockPipe],
|
|
||||||
providers: [
|
providers: [
|
||||||
FormBuilder,
|
FormBuilder,
|
||||||
{ provide: APP_CONFIG, useValue: environment },
|
{ provide: APP_CONFIG, useValue: environment },
|
||||||
|
@@ -31,10 +31,10 @@ describe('StartsWithLoaderComponent', () => {
|
|||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
TranslateModule.forRoot(),
|
TranslateModule.forRoot(),
|
||||||
StartsWithTextComponent
|
StartsWithTextComponent,
|
||||||
|
StartsWithLoaderComponent
|
||||||
],
|
],
|
||||||
declarations: [StartsWithLoaderComponent,
|
declarations: [DynamicComponentLoaderDirective],
|
||||||
DynamicComponentLoaderDirective],
|
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: PaginationService, useValue: paginationService },
|
{ provide: PaginationService, useValue: paginationService },
|
||||||
{ provide: ActivatedRoute, useValue: route },
|
{ provide: ActivatedRoute, useValue: route },
|
||||||
|
@@ -63,8 +63,7 @@ describe('SubmissionSectionCoarNotifyComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [TranslateModule.forRoot()],
|
imports: [TranslateModule.forRoot(), SubmissionSectionCoarNotifyComponent],
|
||||||
declarations: [SubmissionSectionCoarNotifyComponent],
|
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: LdnServicesService, useValue: ldnServicesService },
|
{ provide: LdnServicesService, useValue: ldnServicesService },
|
||||||
{ provide: CoarNotifyConfigDataService, useValue: coarNotifyConfigDataService },
|
{ provide: CoarNotifyConfigDataService, useValue: coarNotifyConfigDataService },
|
||||||
|
Reference in New Issue
Block a user