[MIGRATION] - Migrating to NG18

This commit is contained in:
VitoAlbano
2024-08-14 16:58:24 +01:00
committed by Vito Albano
parent 075e63d693
commit 06cfd684f1
123 changed files with 9783 additions and 11031 deletions

View File

@@ -24,7 +24,7 @@ import { of, Subject } from 'rxjs';
import { ExtensionsModule } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { ShellAppService, SHELL_APP_SERVICE } from '../../services/shell-app.service';
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { TranslateModule } from '@ngx-translate/core';
@@ -58,28 +58,26 @@ describe('AppLayoutComponent', () => {
};
TestBed.configureTestingModule({
imports: [
CommonModule,
NoopAnimationsModule,
HttpClientModule,
...LAYOUT_DIRECTIVES,
ExtensionsModule,
RouterModule.forChild([]),
TranslateModule.forRoot(),
ShellLayoutComponent
],
providers: [
{
provide: Router,
useClass: MockRouter
},
{
provide: SHELL_APP_SERVICE,
useValue: shellService
}
],
schemas: [NO_ERRORS_SCHEMA]
});
schemas: [NO_ERRORS_SCHEMA],
imports: [CommonModule,
NoopAnimationsModule,
...LAYOUT_DIRECTIVES,
ExtensionsModule,
RouterModule.forChild([]),
TranslateModule.forRoot(),
ShellLayoutComponent],
providers: [
{
provide: Router,
useClass: MockRouter
},
{
provide: SHELL_APP_SERVICE,
useValue: shellService
},
provideHttpClient(withInterceptorsFromDi())
]
});
fixture = TestBed.createComponent(ShellLayoutComponent);
component = fixture.componentInstance;