diff --git a/src/test/javascript/spec/component/competencies/components/course-competencies-relation-graph.component.spec.ts b/src/test/javascript/spec/component/competencies/components/course-competencies-relation-graph.component.spec.ts index 206ff37d46e8..331bb1f7ed11 100644 --- a/src/test/javascript/spec/component/competencies/components/course-competencies-relation-graph.component.spec.ts +++ b/src/test/javascript/spec/component/competencies/components/course-competencies-relation-graph.component.spec.ts @@ -5,11 +5,26 @@ import { CompetencyRelationDTO, CompetencyRelationType, CourseCompetency, Course import { MockTranslateService } from '../../../helpers/mocks/service/mock-translate.service'; import { TranslateService } from '@ngx-translate/core'; +interface CourseCompetencyStyle { + dimension: { + height: number; + width: number; + }; + meta: { + forceDimensions: boolean; + }; + position: { + x: number; + y: number; + }; +} +type StyledCourseCompetency = CourseCompetency & CourseCompetencyStyle; + describe('CourseCompetenciesRelationGraphComponent', () => { let component: CourseCompetenciesRelationGraphComponent; let fixture: ComponentFixture; - const courseCompetencies: CourseCompetency[] = [ + const courseCompetencies: StyledCourseCompetency[] = [ { id: 1, type: CourseCompetencyType.COMPETENCY,