From 0b9a45e020c8a9d2db39edfb0cbd8ccd3f02e1f4 Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 16 May 2023 17:17:02 +0200 Subject: [PATCH] add api/export to tests --- tests/app.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/app.test.js b/tests/app.test.js index 09c84e4b..7fb61c47 100644 --- a/tests/app.test.js +++ b/tests/app.test.js @@ -443,18 +443,30 @@ describe('Export', () => { await request(app).get('/feed/rss') .expect('Content-Type', /application\/rss\+xml/) .expect(200) + + await request(app).get('/api/export/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) + + await request(app).get('/api/export/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) + + await request(app).get('/api/export/ics') + .expect('Content-Type', /text\/calendar/) + .expect(200) }) })