mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 02:54:13 +00:00
[DURACOM-191] fix some tests
This commit is contained in:
@@ -5,7 +5,13 @@ import {
|
||||
tick,
|
||||
} from '@angular/core/testing';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
import { ErrorComponent } from '../error/error.component';
|
||||
import { ThemedLoadingComponent } from '../loading/themed-loading.component';
|
||||
import { TabulatableObjectsLoaderComponent } from '../object-collection/shared/tabulatable-objects/tabulatable-objects-loader.component';
|
||||
import { PaginationComponent } from '../pagination/pagination.component';
|
||||
import { ActivatedRouteStub } from '../testing/active-router.stub';
|
||||
import { ObjectTableComponent } from './object-table.component';
|
||||
|
||||
describe('ObjectTableComponent', () => {
|
||||
@@ -17,7 +23,20 @@ describe('ObjectTableComponent', () => {
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ObjectTableComponent],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: new ActivatedRouteStub() },
|
||||
],
|
||||
})
|
||||
.overrideComponent(ObjectTableComponent, {
|
||||
remove: {
|
||||
imports: [
|
||||
PaginationComponent,
|
||||
ThemedLoadingComponent,
|
||||
ErrorComponent,
|
||||
TabulatableObjectsLoaderComponent,
|
||||
],
|
||||
},
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ObjectTableComponent);
|
||||
|
Reference in New Issue
Block a user