1
0
Fork 0

test (calendar.test.js): clean up TEST_MERGED_CALENDARS_DIR

This commit is contained in:
Ryan Mwangi 2024-11-05 13:33:56 +03:00
parent 0fc02c579d
commit e44f8bf474
1 changed files with 3 additions and 4 deletions

View File

@ -23,9 +23,8 @@ describe('Calendar Merging API', () => {
afterAll(async () => { afterAll(async () => {
// Clean up the merged calendars directory after tests // Clean up the merged calendars directory after tests
if (fs.existsSync(MERGED_CALENDARS_DIR)) { fs.rmSync(TEST_MERGED_CALENDARS_DIR, { recursive: true, force: true });
fs.rmSync(MERGED_CALENDARS_DIR, { recursive: true, force: true });
}
// Close the server // Close the server
await new Promise(resolve => server.close(resolve)); await new Promise(resolve => server.close(resolve));
}); });