1 import * as request from 'supertest'
2 import { readFileBufferPromise } from '../../../helpers/core-utils'
4 function getXMLfeed (url: string, format?: string) {
5 const path = '/feeds/videos.xml'
9 .query((format) ? { format: format } : {})
10 .set('Accept', 'application/xml')
12 .expect('Content-Type', /xml/)
15 function getJSONfeed (url: string) {
16 const path = '/feeds/videos.json'
20 .set('Accept', 'application/json')
22 .expect('Content-Type', /json/)
25 // ---------------------------------------------------------------------------