1
0
Fork 0

Ensure the merged calendars directory exists

This commit is contained in:
Ryan Mwangi 2024-10-29 21:29:24 +03:00
parent 3ddd563eac
commit 22f0a05bce
1 changed files with 11 additions and 1 deletions

View File

@ -4,4 +4,14 @@ import icalGenerator from 'ical-generator';
import fs from 'fs';
import path from 'path';
const MERGED_CALENDARS_DIR = 'calendar';
const MERGED_CALENDARS_DIR = 'calendar';
describe('Calendar Merging API', () => {
beforeAll(() => {
// Ensure the merged calendars directory exists
if (!fs.existsSync(MERGED_CALENDARS_DIR)) {
fs.mkdirSync(MERGED_CALENDARS_DIR);
}
});
});