From 4a52a076d62fe8f4cfb8cf746684d02b06a590de Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 16 May 2023 17:05:38 +0200 Subject: [PATCH] add export tests --- tests/app.test.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/app.test.js b/tests/app.test.js index a19201a3..09c84e4b 100644 --- a/tests/app.test.js +++ b/tests/app.test.js @@ -438,6 +438,26 @@ describe('Collection', () => { }) }) +describe('Export', () => { + test('should export an rss feed', async () => { + await request(app).get('/feed/rss') + .expect('Content-Type', /application\/rss\+xml/) + .expect(200) + }) + + test('should export a json feed', async () => { + await request(app).get('/feed/json') + .expect('Content-Type', /application\/json/) + .expect(200) + }) + + test('should export an ics feed', async () => { + await request(app).get('/feed/ics') + .expect('Content-Type', /text\/calendar/) + .expect(200) + }) +}) + describe('Geocoding', () => { test('should not be enabled by default', async () => {