aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/feeds/feeds.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-13 09:48:34 +0200
committerChocobozzz <me@florianbigard.com>2018-09-13 09:48:34 +0200
commit662fb3ab5e3aafa49c96809a61239c9046a5c485 (patch)
treef79b116292d7c6a514a9d1cbdf5491766ec6ad39 /server/tests/utils/feeds/feeds.ts
parent4035d2b6e937e13cd10cf88ed0e89cb579dd86ee (diff)
downloadPeerTube-662fb3ab5e3aafa49c96809a61239c9046a5c485.tar.gz
PeerTube-662fb3ab5e3aafa49c96809a61239c9046a5c485.tar.zst
PeerTube-662fb3ab5e3aafa49c96809a61239c9046a5c485.zip
Fix feeds with channel filter
Diffstat (limited to 'server/tests/utils/feeds/feeds.ts')
-rw-r--r--server/tests/utils/feeds/feeds.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tests/utils/feeds/feeds.ts b/server/tests/utils/feeds/feeds.ts
index fb480b704..af6df2b20 100644
--- a/server/tests/utils/feeds/feeds.ts
+++ b/server/tests/utils/feeds/feeds.ts
@@ -13,11 +13,12 @@ function getXMLfeed (url: string, feed: FeedType, format?: string) {
13 .expect('Content-Type', /xml/) 13 .expect('Content-Type', /xml/)
14} 14}
15 15
16function getJSONfeed (url: string, feed: FeedType) { 16function getJSONfeed (url: string, feed: FeedType, query: any = {}) {
17 const path = '/feeds/' + feed + '.json' 17 const path = '/feeds/' + feed + '.json'
18 18
19 return request(url) 19 return request(url)
20 .get(path) 20 .get(path)
21 .query(query)
21 .set('Accept', 'application/json') 22 .set('Accept', 'application/json')
22 .expect(200) 23 .expect(200)
23 .expect('Content-Type', /json/) 24 .expect('Content-Type', /json/)