mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 03:23:07 +00:00
[DURACOM-191] run optimize imports and lint fix
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
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';
|
||||
ComponentFixture,
|
||||
TestBed,
|
||||
waitForAsync,
|
||||
} from '@angular/core/testing';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
import { SearchConfigurationService } from '../core/shared/search/search-configuration.service';
|
||||
import { getMockThemeService } from '../shared/mocks/theme-service.mock';
|
||||
import { ActivatedRouteStub } from '../shared/testing/active-router.stub';
|
||||
import { ThemeService } from '../shared/theme-support/theme.service';
|
||||
import { ThemedSubmissionImportExternalComponent } from '../submission/import-external/themed-submission-import-external.component';
|
||||
import { ImportExternalPageComponent } from './import-external-page.component';
|
||||
|
||||
describe('ImportExternalPageComponent', () => {
|
||||
let component: ImportExternalPageComponent;
|
||||
@@ -17,19 +19,19 @@ describe('ImportExternalPageComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ImportExternalPageComponent],
|
||||
providers: [
|
||||
imports: [ImportExternalPageComponent],
|
||||
providers: [
|
||||
{ provide: ThemeService, useValue: getMockThemeService() },
|
||||
{ provide: ActivatedRoute, useValue: new ActivatedRouteStub() },
|
||||
{ provide: SearchConfigurationService, useValue: {}},
|
||||
],
|
||||
{ provide: SearchConfigurationService, useValue: {} },
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA],
|
||||
})
|
||||
})
|
||||
.overrideComponent(ImportExternalPageComponent, {
|
||||
remove: {
|
||||
imports: [ThemedSubmissionImportExternalComponent]
|
||||
}
|
||||
}
|
||||
remove: {
|
||||
imports: [ThemedSubmissionImportExternalComponent],
|
||||
},
|
||||
},
|
||||
)
|
||||
.compileComponents();
|
||||
}));
|
||||
|
Reference in New Issue
Block a user