[DURACOM-191] fix unit test with missing providers

This commit is contained in:
Giuseppe Digilio
2024-01-19 17:59:49 +01:00
parent 31f89e8cb9
commit 4716a3c492
27 changed files with 176 additions and 101 deletions

View File

@@ -49,7 +49,7 @@ import { provideMockStore } from '@ngrx/store/testing';
import {
DsDynamicTypeBindRelationService
} from '../../../../../shared/form/builder/ds-dynamic-form-ui/ds-dynamic-type-bind-relation.service';
import { APP_CONFIG } from '../../../../../../config/app-config.interface';
import { APP_CONFIG, APP_DATA_SERVICES_MAP } from '../../../../../../config/app-config.interface';
import { environment } from '../../../../../../environments/environment.test';
import { NgxMaskModule } from 'ngx-mask';
import { POLICY_DEFAULT_WITH_LIST } from '../../section-upload-constants';
@@ -140,6 +140,7 @@ describe('SubmissionSectionUploadFileEditComponent test suite', () => {
NgbActiveModal,
{ provide: DsDynamicTypeBindRelationService, useValue: getMockDsDynamicTypeBindRelationService() },
{ provide: APP_CONFIG, useValue: environment },
{ provide: APP_DATA_SERVICES_MAP, useValue: {} },
],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents().then();