diff --git a/calendar.test.js b/calendar.test.js index 980d34e..86396a9 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -33,6 +33,10 @@ describe('Calendar Merging API', () => { }); expect(response.status).toBe(200); expect(response.body.url).toMatch(/calendar\/Date_Based_Calendar/); - }) + + // Check if the file was created + const filePath = path.join(MERGED_CALENDARS_DIR, 'Date_Based_Calendar.ics'); + expect(fs.existsSync(filePath)).toBe(true); + }); }); \ No newline at end of file