diff --git a/src/test/javascript/spec/component/learning-paths/components/learning-path-lecture-unit.component.spec.ts b/src/test/javascript/spec/component/learning-paths/components/learning-path-lecture-unit.component.spec.ts index 7942e37eedf8..03905c6938a7 100644 --- a/src/test/javascript/spec/component/learning-paths/components/learning-path-lecture-unit.component.spec.ts +++ b/src/test/javascript/spec/component/learning-paths/components/learning-path-lecture-unit.component.spec.ts @@ -125,7 +125,7 @@ describe('LearningPathLectureUnitComponent', () => { component.setLearningObjectCompletion({ completed: true, lectureUnit: lectureUnit }); - expect(completeLectureUnitSpy).toHaveBeenCalledWith(lectureUnit.lecture, { + expect(completeLectureUnitSpy).toHaveBeenCalledExactlyOnceWith(lectureUnit.lecture, { completed: true, lectureUnit: lectureUnit, });