mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 12:03:03 +00:00
feat: migrate everything to standalone and fix build errors
This commit is contained in:
@@ -144,35 +144,34 @@ describe('Pagination component', () => {
|
||||
});
|
||||
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
imports: [
|
||||
CommonModule,
|
||||
StoreModule.forRoot({}, storeModuleConfig),
|
||||
TranslateModule.forRoot({
|
||||
loader: {
|
||||
provide: TranslateLoader,
|
||||
useClass: TranslateLoaderMock
|
||||
}
|
||||
loader: {
|
||||
provide: TranslateLoader,
|
||||
useClass: TranslateLoaderMock
|
||||
}
|
||||
}),
|
||||
NgxPaginationModule,
|
||||
NgbModule,
|
||||
RouterTestingModule.withRoutes([
|
||||
{ path: 'home', component: TestComponent }
|
||||
])],
|
||||
declarations: [
|
||||
{ path: 'home', component: TestComponent }
|
||||
]),
|
||||
PaginationComponent,
|
||||
TestComponent,
|
||||
EnumKeysPipe
|
||||
], // declare the test component
|
||||
providers: [
|
||||
],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: activatedRouteStub },
|
||||
{ provide: Router, useValue: routerStub },
|
||||
{ provide: HostWindowService, useValue: hostWindowServiceStub },
|
||||
{ provide: PaginationService, useValue: paginationService },
|
||||
ChangeDetectorRef,
|
||||
PaginationComponent
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
});
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
});
|
||||
|
||||
}));
|
||||
|
||||
@@ -379,7 +378,13 @@ describe('Pagination component', () => {
|
||||
});
|
||||
|
||||
// declare a test component
|
||||
@Component({ selector: 'ds-test-cmp', template: '' })
|
||||
@Component({
|
||||
selector: 'ds-test-cmp', template: '',
|
||||
standalone: true,
|
||||
imports: [CommonModule,
|
||||
NgxPaginationModule,
|
||||
NgbModule]
|
||||
})
|
||||
class TestComponent {
|
||||
|
||||
collection: string[] = [];
|
||||
|
Reference in New Issue
Block a user