1
0
Fork 0
CalMerger/calendar.test.js

17 lines
438 B
JavaScript
Raw Normal View History

2024-10-29 18:24:44 +00:00
import request from 'supertest';
2024-10-29 18:26:17 +00:00
import express from 'express';
import icalGenerator from 'ical-generator';
import fs from 'fs';
import path from 'path';
2024-10-29 18:27:29 +00:00
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);
}
});
});