add logging to ensure file creation logic is working

This commit is contained in:
Ryan Mwangi 2024-10-31 15:24:02 +03:00
parent 3d62557fa3
commit 88ab9c53a1
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ describe('Calendar Merging API', () => {
test('Merge time-based calendar', async () => {
const response = await request(server)
.post('/merge')
.post('/merge')
.send({
linkGroupName: 'Time Based Calendar',
calendars: [

View File

@ -54,7 +54,7 @@ app.post('/merge', async (req, res) => {
};
})
.catch((error) => {
console.error(error);
console.error(`Error fetching calendar from ${calendar.url}:`, error);
return null;
});
});