add api/export to tests
This commit is contained in:
@@ -443,18 +443,30 @@ describe('Export', () => {
|
|||||||
await request(app).get('/feed/rss')
|
await request(app).get('/feed/rss')
|
||||||
.expect('Content-Type', /application\/rss\+xml/)
|
.expect('Content-Type', /application\/rss\+xml/)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
|
||||||
|
await request(app).get('/api/export/rss')
|
||||||
|
.expect('Content-Type', /application\/rss\+xml/)
|
||||||
|
.expect(200)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('should export a json feed', async () => {
|
test('should export a json feed', async () => {
|
||||||
await request(app).get('/feed/json')
|
await request(app).get('/feed/json')
|
||||||
.expect('Content-Type', /application\/json/)
|
.expect('Content-Type', /application\/json/)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
|
||||||
|
await request(app).get('/api/export/json')
|
||||||
|
.expect('Content-Type', /application\/json/)
|
||||||
|
.expect(200)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('should export an ics feed', async () => {
|
test('should export an ics feed', async () => {
|
||||||
await request(app).get('/feed/ics')
|
await request(app).get('/feed/ics')
|
||||||
.expect('Content-Type', /text\/calendar/)
|
.expect('Content-Type', /text\/calendar/)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
|
||||||
|
await request(app).get('/api/export/ics')
|
||||||
|
.expect('Content-Type', /text\/calendar/)
|
||||||
|
.expect(200)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user