Skip to content

Commit

Permalink
correctly type in course-competencies-relation-graph.component.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Jan 11, 2025
1 parent b453511 commit 56c3d67
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<CourseCompetenciesRelationGraphComponent>;

const courseCompetencies: CourseCompetency[] = [
const courseCompetencies: StyledCourseCompetency[] = [
{
id: 1,
type: CourseCompetencyType.COMPETENCY,
Expand Down

0 comments on commit 56c3d67

Please sign in to comment.