forked from hazza/dspace-angular
Manual fix: sync removed imports between tests and components
The automatic migration made it so HTML always uses the `Themed*` component, and it must therefore be imported in all standalone components that use it. Afterwards, many unit tests fail because the removed imports no longer match up (can't inject `ThemeService`). While we could try to support this as part of the automatic migration, there are too many edge cases for this to be consistent.
This commit is contained in:
@@ -51,6 +51,7 @@ import { SectionUploadService } from '../section-upload.service';
|
||||
import { POLICY_DEFAULT_WITH_LIST } from '../section-upload-constants';
|
||||
import { SubmissionSectionUploadFileEditComponent } from './edit/section-upload-file-edit.component';
|
||||
import { SubmissionSectionUploadFileComponent } from './section-upload-file.component';
|
||||
import { ThemedSubmissionSectionUploadFileComponent } from './themed-section-upload-file.component';
|
||||
import { SubmissionSectionUploadFileViewComponent } from './view/section-upload-file-view.component';
|
||||
|
||||
const configMetadataFormMock = {
|
||||
@@ -284,7 +285,7 @@ describe('SubmissionSectionUploadFileComponent test suite', () => {
|
||||
template: ``,
|
||||
standalone: true,
|
||||
imports: [
|
||||
SubmissionSectionUploadFileComponent,
|
||||
ThemedSubmissionSectionUploadFileComponent,
|
||||
CommonModule,
|
||||
AsyncPipe,
|
||||
NgbModule],
|
||||
|
Reference in New Issue
Block a user