fix syntax error

This commit is contained in:
Ryan Mwangi 2024-10-30 15:00:20 +03:00
parent adb29222ca
commit 3d82d61661
1 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ describe('Calendar Merging API', () => {
// Start the server
server = app.listen(0);
console.log(`Server started on port 3000`);
});
// Ensure the merged calendars directory exists
if (!fs.existsSync(MERGED_CALENDARS_DIR)) {
fs.mkdirSync(MERGED_CALENDARS_DIR);
@ -30,7 +30,7 @@ describe('Calendar Merging API', () => {
});
test('Merge date-based calendar', async () => {
const response = await request(app)
const response = await request(server)
.post('/merge')
.send({
linkGroupName: 'Date Based Calendar',
@ -51,7 +51,7 @@ describe('Calendar Merging API', () => {
});
test('Merge time-based calendar', async () => {
const response = await request(app)
const response = await request(server)
.post('/merge')
.send({
linkGroupName: 'Time Based Calendar',
@ -73,7 +73,7 @@ describe('Calendar Merging API', () => {
});
test('Merge calendar without prefix', async () => {
const response = await request(app)
const response = await request(server)
.post('/merge')
.send({
linkGroupName: 'No Prefix Calendar',
@ -95,7 +95,7 @@ describe('Calendar Merging API', () => {
});
test('Merge calendar with override', async () => {
const response = await request(app)
const response = await request(server)
.post('/merge')
.send({
linkGroupName: 'Override Calendar',