Skip to content

Commit

Permalink
fix: improve coverage - format
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed May 24, 2024
1 parent 0e82629 commit defd47b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/src/timeslots/timeslots.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe('TimeSlotController', () => {
expect(service).toBeDefined();
});


describe('findAvailableTimeSlots', () => {
it('should return an array of available time slots', async () => {
const expectedTimeSlots: TimeSlot[] = [
Expand Down Expand Up @@ -48,7 +47,7 @@ describe('TimeSlotController', () => {
expect(service.findAvailableTimeSlots).toHaveBeenCalledTimes(1);
});

it("should return an empty array if there are no available time slots", async () => {
it('should return an empty array if there are no available time slots', async () => {
const expectedTimeSlots: TimeSlot[] = [];

jest
Expand Down
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sonar.projectName=HKrecruitment
sonar.javascript.lcov.reportPaths=./coverage/shared/lcov.info, ./coverage/api/lcov.info, ./coverage/api-e2e/lcov.info
sonar.sources=api/, frontend/, shared/
sonar.coverage.exclusions=**/node_modules/**/*, **/*.spec.*, **/*.e2e-spec.*, **/documentation/**/*, **/frontend/**/*, **/test/**/*, **/tests/**/*, **/*.json, **/*.yaml, **/*.yml, **/*.md
sonar.cpd.exclusions=**/mocks/**/*
sonar.cpd.exclusions=**/mocks/**/*
sonar.ex

0 comments on commit defd47b

Please sign in to comment.