mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
add export tests
This commit is contained in:
parent
3693df44d8
commit
4a52a076d6
1 changed files with 20 additions and 0 deletions
|
@ -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 () => {
|
||||
|
||||
|
|
Loading…
Reference in a new issue