From bed191c7b78c78d2fbb772c9cac277b232385e80 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Wed, 30 Oct 2024 14:23:44 +0300 Subject: [PATCH] declare server variable --- calendar.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar.test.js b/calendar.test.js index 68bcfc5..44dafd7 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -45,6 +45,7 @@ describe('Calendar Merging API', () => { const filePath = path.join(MERGED_CALENDARS_DIR, 'Date_Based_Calendar.ics'); expect(fs.existsSync(filePath)).toBe(true); }); + test('Merge time-based calendar', async () => { const response = await request(app) .post('/merge') @@ -66,6 +67,7 @@ describe('Calendar Merging API', () => { const filePath = path.join(MERGED_CALENDARS_DIR, 'Time_Based_Calendar.ics'); expect(fs.existsSync(filePath)).toBe(true); }); + test('Merge calendar without prefix', async () => { const response = await request(app) .post('/merge') @@ -87,6 +89,7 @@ describe('Calendar Merging API', () => { const filePath = path.join(MERGED_CALENDARS_DIR, 'No_Prefix_Calendar.ics'); expect(fs.existsSync(filePath)).toBe(true); }); + test('Merge calendar with override', async () => { const response = await request(app) .post('/merge')