Skip to content

Commit

Permalink
debug: test 8
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed May 19, 2024
1 parent 7351d02 commit 22522fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions api/src/timeslots/timeslots.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,11 +959,9 @@ describe('TimeslotsController', () => {
.expect(200)
.expect((res) => {
expect(res.body).toBeInstanceOf(Array);
expect(res.body).toHaveLength(2);
expect(res.body).toEqual(expected);
});

const availableTimeSlots =
await timeSlotsService.findAvailableTimeSlots();
expect(availableTimeSlots).toEqual(expected);
});
});
});
3 changes: 1 addition & 2 deletions api/src/timeslots/timeslots.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Role,
} from '@hkrecruitment/shared';
import { CreateTimeSlotDto } from './create-timeslot.dto';
import { count } from 'console';

@Injectable()
export class TimeSlotsService {
Expand Down Expand Up @@ -201,8 +202,6 @@ export class TimeSlotsService {
},
});

return allMatches;

let goodTimeSlots: TimeSlot[] = [];
allMatches.forEach((timeSlot) => {
let boardMembers = 0;
Expand Down

0 comments on commit 22522fc

Please sign in to comment.