sef-global / scholarx-backend

This is the backend of the ScholarX
MIT License
8 stars 32 forks source link

Fix unit testing failing issue #92

Closed janithlahirukariyawasam closed 6 months ago

janithlahirukariyawasam commented 6 months ago

Purpose

The purpose of this PR is to fix #91

Goals

Goal is to fix unit testing failing issue.

Approach

Screenshots

Checklist

Related PRs

## Test environment ## Learning
janithlahirukariyawasam commented 6 months ago

@anjula-sack fixed the unit test failing issue.

  1. Removed all existing test cases.
  2. Wrote unit tests for the service layer instead of routes.
  3. Used mocked repositories instead of real database.