forked from ryanmwangi/CalMerger
Ensure the merged calendars directory exists
This commit is contained in:
parent
3ddd563eac
commit
22f0a05bce
|
@ -4,4 +4,14 @@ import icalGenerator from 'ical-generator';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
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);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in New Issue