1
0

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:
Yury Bondarenko
2024-03-28 18:43:43 +01:00
parent 0b9741d252
commit 762e4616cc
20 changed files with 34 additions and 41 deletions

View File

@@ -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],