mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
[DURACOM-191] fix various tests
now tests are not breaking anymore, but there are some excluded tests that need to be fixed after everything else.
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ImportExternalPageComponent } from './import-external-page.component';
|
||||
import { ThemeService } from '../shared/theme-support/theme.service';
|
||||
import { getMockThemeService } from '../shared/mocks/theme-service.mock';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { ActivatedRouteStub } from '../shared/testing/active-router.stub';
|
||||
import { SearchConfigurationService } from '../core/shared/search/search-configuration.service';
|
||||
import {
|
||||
ThemedSubmissionImportExternalComponent
|
||||
} from '../submission/import-external/themed-submission-import-external.component';
|
||||
|
||||
describe('ImportExternalPageComponent', () => {
|
||||
let component: ImportExternalPageComponent;
|
||||
@@ -21,6 +24,12 @@ describe('ImportExternalPageComponent', () => {
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
})
|
||||
.overrideComponent(ImportExternalPageComponent, {
|
||||
remove: {
|
||||
imports: [ThemedSubmissionImportExternalComponent]
|
||||
}
|
||||
}
|
||||
)
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
|
Reference in New Issue
Block a user