Skip to content

✅ Add unit tests for LessonsController (fix #48) - #82

Merged
Dario0731 merged 1 commit into
SkillCert:mainfrom
Stealth-cloud-droid:fix-48-add-unit-tests-for-lesson-controllers
Sep 12, 2025
Merged

Dario0731 merged 1 commit into
SkillCert:mainfrom
Stealth-cloud-droid:fix-48-add-unit-tests-for-lesson-controllers

Conversation

@Stealth-cloud-droid

Copy link
Copy Markdown
Contributor

Overview

This PR adds comprehensive unit tests for the LessonsController.

Changes

  • Added lessonController.spec.ts under src/__tests__
  • Implemented tests for:
    • findAll
    • findOne
    • findByModuleId
    • create
    • update
    • remove
  • Updated lessons.service.ts mock to support testing.

Result

@Dario0731
Dario0731 merged commit 0b02bee into SkillCert:main Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Unit Tests for lesson Controllers

2 participants