Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed May 19, 2024
1 parent cd72909 commit 520a1f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/src/timeslots/timeslots.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1220,22 +1220,21 @@ describe('TimeslotsController', () => {
it('should return all available timeslots', async () => {
const expected = [
{
end: '2024-05-19T14:00:00.000Z',
id: 71,
start: '2024-05-19T13:00:00.000Z',
end: '2024-05-19T14:00:00.000Z',
},
{
end: '2024-05-19T16:00:00.000Z',
id: 73,
start: '2024-05-19T15:00:00.000Z',
end: '2024-05-19T16:00:00.000Z',
},
];
return await request(app.getHttpServer())
.get('/timeslots')
.set('Authorization', `Bearer ${newMemberToken}`)
.expect(200)
.expect((res) => {
console.log(res.body);
expect(res.body).toBeInstanceOf(Array);
expect(res.body).toEqual(expected);
});
Expand Down

0 comments on commit 520a1f4

Please sign in to comment.