Skip to content

Fix/es6 tests - Refactor(tests): convert Department and Instructor test files to ES6 modules#76

Merged
agaesh merged 3 commits intofix/es6-migrationfrom
fix/es6-tests
Oct 12, 2025
Merged

Fix/es6 tests - Refactor(tests): convert Department and Instructor test files to ES6 modules#76
agaesh merged 3 commits intofix/es6-migrationfrom
fix/es6-tests

Conversation

@agaesh
Copy link
Copy Markdown
Owner

@agaesh agaesh commented Oct 12, 2025

Title: refactor(tests): convert Department and Instructor test files to ES6 modules

Description:
This pull request refactors the DepartmentService.test.js and InstructorService.test.js files to use pure ES6 module syntax.

Changes:

  • Replaced all require statements with import.
  • Updated service and model imports to ES6 syntax.
  • Ensured all mocks and test logic remain unchanged.
  • Made paths and module references ES6 compatible.

Notes:

  • This change is part of the ongoing ES6 migration effort.
  • Integration testing will be handled later in the es6-migration branch.

Branch Name:
fix/es6-test-files

@agaesh agaesh self-assigned this Oct 12, 2025
@agaesh agaesh added the enhancement New feature or request label Oct 12, 2025
@agaesh agaesh merged commit 8abcf99 into fix/es6-migration Oct 12, 2025
@agaesh
Copy link
Copy Markdown
Owner Author

agaesh commented Oct 12, 2025

This pull request closes issue #75 as the DepartmentService.test.js and InstructorService.test.js files have been successfully converted to ES6 modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue: Refactor Department and Instructor Services Unit Test Files to ES6 Module Syntax

1 participant