From 662fb3ab5e3aafa49c96809a61239c9046a5c485 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 13 Sep 2018 09:48:34 +0200 Subject: Fix feeds with channel filter --- server/tests/utils/feeds/feeds.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/tests/utils/feeds') 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) { .expect('Content-Type', /xml/) } -function getJSONfeed (url: string, feed: FeedType) { +function getJSONfeed (url: string, feed: FeedType, query: any = {}) { const path = '/feeds/' + feed + '.json' return request(url) .get(path) + .query(query) .set('Accept', 'application/json') .expect(200) .expect('Content-Type', /json/) -- cgit v1.2.3