Make CoreModule a legacy module

This commit is contained in:
mauriziovitale
2024-08-06 12:19:45 +01:00
parent 3b637819c8
commit 725eb46e52
44 changed files with 152 additions and 283 deletions
@@ -18,7 +18,7 @@
import { TestBed } from '@angular/core/testing';
import { exampleProcess } from '../../testing/mock';
import { ProcessService } from './process.service';
import { CoreModule, DateFnsUtils } from '@alfresco/adf-core';
import { CoreLegacyModule, DateFnsUtils } from '@alfresco/adf-core';
import { ProcessTestingModule } from '../../testing/process.testing.module';
import { ProcessInstanceQueryRepresentation, ProcessDefinitionRepresentation, RestVariable, TaskRepresentation } from '@alfresco/js-api';
@@ -55,7 +55,7 @@ describe('ProcessService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [CoreModule.forRoot(), ProcessTestingModule]
imports: [CoreLegacyModule.forRoot(), ProcessTestingModule]
});
service = TestBed.inject(ProcessService);
});
@@ -25,7 +25,7 @@ import {
AppConfigServiceMock,
TranslationService,
TranslationMock,
CoreModule,
CoreLegacyModule,
FormRenderingService,
AuthModule
} from '@alfresco/adf-core';
@@ -38,7 +38,7 @@ import { RouterTestingModule } from '@angular/router/testing';
AuthModule.forRoot({ useHash: true }),
NoopAnimationsModule,
TranslateModule.forRoot(),
CoreModule.forRoot(),
CoreLegacyModule.forRoot(),
ProcessModule.forRoot(),
RouterTestingModule
],
@@ -49,6 +49,6 @@ import { RouterTestingModule } from '@angular/router/testing';
FormRenderingService,
{ provide: FormRenderingService, useClass: ProcessFormRenderingService }
],
exports: [NoopAnimationsModule, TranslateModule, CoreModule, ProcessModule]
exports: [NoopAnimationsModule, TranslateModule, CoreLegacyModule, ProcessModule]
})
export class ProcessTestingModule {}