Compare commits

...

2 commits

Author SHA1 Message Date
8650d91edb set up response status 2024-10-29 21:35:41 +03:00
728c73b23d set up test for date based calendar 2024-10-29 21:34:45 +03:00

View file

@ -19,7 +19,20 @@ describe('Calendar Merging API', () => {
});
test('Merge date-based calendar', async () => {
const response = await request(app)
.post('/merge')
.send({
linkGroupName: 'Date Based Calendar',
calendars: [
{
url: 'https://www.schulferien.org/media/ical/deutschland/ferien_bayern_2023.ics?k=PsL0S2B9rScFMn5PAxtf4OVQjMkWZsqqkK13zEJ0FCW5Q-2xQejfLJYaTN4EdYUsQHLDDbGVnVl93ms7en5vMUISjZ3H9Esu88Vp2ndnL5Q',
prefix: 'Date Event',
override: false,
},
],
});
expect(response.status).toBe(200);
expect(response.body.url).toMatch(/calendar\/Date_Based_Calendar/);
})
});