From e98d0de0cde8ffa82ccb7cc9c231ef0ff2df4fd3 Mon Sep 17 00:00:00 2001 From: Andrea Barbasso <´andrea.barbasso@4science.com´> Date: Wed, 20 Dec 2023 12:15:33 +0100 Subject: [PATCH] [DURACOM-191] quality-assurance-source tests --- .../quality-assurance-source.component.spec.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/app/notifications/qa/source/quality-assurance-source.component.spec.ts b/src/app/notifications/qa/source/quality-assurance-source.component.spec.ts index 010c443750..0525111224 100644 --- a/src/app/notifications/qa/source/quality-assurance-source.component.spec.ts +++ b/src/app/notifications/qa/source/quality-assurance-source.component.spec.ts @@ -15,6 +15,9 @@ import { NotificationsStateService } from '../../notifications-state.service'; import { cold } from 'jasmine-marbles'; import { PaginationServiceStub } from '../../../shared/testing/pagination-service.stub'; import { PaginationService } from '../../../core/pagination/pagination.service'; +import { AlertComponent } from '../../../shared/alert/alert.component'; +import { LoadingComponent } from '../../../shared/loading/loading.component'; +import { PaginationComponent } from '../../../shared/pagination/pagination.component'; describe('QualityAssuranceSourceComponent test suite', () => { let fixture: ComponentFixture; @@ -44,7 +47,17 @@ describe('QualityAssuranceSourceComponent test suite', () => { QualityAssuranceSourceComponent ], schemas: [NO_ERRORS_SCHEMA] -}).compileComponents().then(() => { +}) + .overrideComponent(QualityAssuranceSourceComponent, { + remove: { + imports: [ + AlertComponent, + LoadingComponent, + PaginationComponent + ] + } + }) + .compileComponents().then(() => { mockNotificationsStateService.getQualityAssuranceSource.and.returnValue(observableOf([ qualityAssuranceSourceObjectMorePid, qualityAssuranceSourceObjectMoreAbstract