Compare commits
No commits in common. "a61ae491fac28b6b4562122411e2d4726f481fe1" and "11c60cdf38150d3448d06f697a87ec460d14051a" have entirely different histories.
a61ae491fa
...
11c60cdf38
|
@ -11,7 +11,7 @@ let server;
|
||||||
describe('Calendar Merging API', () => {
|
describe('Calendar Merging API', () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
// Start the server
|
// Start the server
|
||||||
server = app.listen(0);
|
server = app.listen(0, () => {
|
||||||
console.log(`Server started on port 3000`);
|
console.log(`Server started on port 3000`);
|
||||||
});
|
});
|
||||||
// Ensure the merged calendars directory exists
|
// Ensure the merged calendars directory exists
|
||||||
|
@ -45,7 +45,6 @@ describe('Calendar Merging API', () => {
|
||||||
const filePath = path.join(MERGED_CALENDARS_DIR, 'Date_Based_Calendar.ics');
|
const filePath = path.join(MERGED_CALENDARS_DIR, 'Date_Based_Calendar.ics');
|
||||||
expect(fs.existsSync(filePath)).toBe(true);
|
expect(fs.existsSync(filePath)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Merge time-based calendar', async () => {
|
test('Merge time-based calendar', async () => {
|
||||||
const response = await request(app)
|
const response = await request(app)
|
||||||
.post('/merge')
|
.post('/merge')
|
||||||
|
@ -67,7 +66,6 @@ describe('Calendar Merging API', () => {
|
||||||
const filePath = path.join(MERGED_CALENDARS_DIR, 'Time_Based_Calendar.ics');
|
const filePath = path.join(MERGED_CALENDARS_DIR, 'Time_Based_Calendar.ics');
|
||||||
expect(fs.existsSync(filePath)).toBe(true);
|
expect(fs.existsSync(filePath)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Merge calendar without prefix', async () => {
|
test('Merge calendar without prefix', async () => {
|
||||||
const response = await request(app)
|
const response = await request(app)
|
||||||
.post('/merge')
|
.post('/merge')
|
||||||
|
@ -89,7 +87,6 @@ describe('Calendar Merging API', () => {
|
||||||
const filePath = path.join(MERGED_CALENDARS_DIR, 'No_Prefix_Calendar.ics');
|
const filePath = path.join(MERGED_CALENDARS_DIR, 'No_Prefix_Calendar.ics');
|
||||||
expect(fs.existsSync(filePath)).toBe(true);
|
expect(fs.existsSync(filePath)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Merge calendar with override', async () => {
|
test('Merge calendar with override', async () => {
|
||||||
const response = await request(app)
|
const response = await request(app)
|
||||||
.post('/merge')
|
.post('/merge')
|
||||||
|
|
Loading…
Reference in New Issue