Skip to content

Commit 104d535

Browse files
committed
linting and prettier
1 parent 55a7228 commit 104d535

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/backend/tests/unit/calendar.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,9 @@ describe('Calendar Tests', () => {
22182218
false,
22192219
organization
22202220
)
2221-
).rejects.toThrow(new AccessDeniedException('Only admins, heads, or the event creator can edit the times of an event!'));
2221+
).rejects.toThrow(
2222+
new AccessDeniedException('Only admins, heads, or the event creator can edit the times of an event!')
2223+
);
22222224
});
22232225

22242226
it('succeeds for head user', async () => {
@@ -2428,7 +2430,7 @@ describe('Calendar Tests', () => {
24282430

24292431
// Now delete the last slot - should delete the entire event
24302432
const lastSlotId = event.scheduledTimes[1].scheduleSlotId;
2431-
const result = await CalendarService.deleteScheduleSlot(adminUser, lastSlotId, organization);
2433+
await CalendarService.deleteScheduleSlot(adminUser, lastSlotId, organization);
24322434

24332435
// The event should be soft deleted
24342436
const deletedEvent = await prisma.event.findUnique({
@@ -2555,9 +2557,7 @@ describe('Calendar Tests', () => {
25552557

25562558
it('returns empty array for slot with unique time', async () => {
25572559
// Use the 14:00-15:00 UTC slot (unique time)
2558-
const uniqueSlot = event.scheduledTimes.find(
2559-
(s) => s.startTime.getUTCHours() === 14
2560-
);
2560+
const uniqueSlot = event.scheduledTimes.find((s) => s.startTime.getUTCHours() === 14);
25612561
expect(uniqueSlot).toBeDefined();
25622562

25632563
const result = await CalendarService.previewScheduleSlotRecurringEdits(

0 commit comments

Comments
 (0)