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