Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed May 22, 2024
1 parent 58dc3f1 commit 72e2679
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions api/src/timeslots/timeslots.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ describe('TimeSlotsService', () => {
jest.resetAllMocks();
});

it("should return only time slots with at least 2 available people, one of which is a board member", async () => {
it('should return only time slots with at least 2 available people, one of which is a board member', async () => {
const mockQueryBuilder = {
innerJoinAndSelect: jest.fn().mockReturnThis(),
where: jest.fn().mockReturnThis(),
Expand Down Expand Up @@ -309,7 +309,8 @@ describe('TimeSlotsService', () => {
is_expert: true,
},
},
]}
],
},
]),
};

Expand All @@ -323,11 +324,15 @@ describe('TimeSlotsService', () => {
);

const result = await timeSlotService.findAvailableTimeSlots();
expect(JSON.stringify(result)).toBe(JSON.stringify([{
id: 1,
start: new Date('2022-01-01T09:00:00'),
end: new Date('2022-01-01T10:00:00'),
}]));
expect(JSON.stringify(result)).toBe(
JSON.stringify([
{
id: 1,
start: new Date('2022-01-01T09:00:00'),
end: new Date('2022-01-01T10:00:00'),
},
]),
);
});
});
});
Expand Down

0 comments on commit 72e2679

Please sign in to comment.