[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:
Andrea Barbasso
2023-12-14 16:51:32 +01:00
parent bdf1855b12
commit 4c1f488356
16 changed files with 85 additions and 40 deletions

View File

@@ -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();
}));