From 18490b07650d77d7fe376970b749af5a8c672fd6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Nov 2020 11:04:18 +0100 Subject: Fix migration and test --- shared/extra-utils/feeds/feeds.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared/extra-utils/feeds') diff --git a/shared/extra-utils/feeds/feeds.ts b/shared/extra-utils/feeds/feeds.ts index bafbb9f94..957d4499c 100644 --- a/shared/extra-utils/feeds/feeds.ts +++ b/shared/extra-utils/feeds/feeds.ts @@ -13,14 +13,14 @@ function getXMLfeed (url: string, feed: FeedType, format?: string) { .expect('Content-Type', /xml/) } -function getJSONfeed (url: string, feed: FeedType, query: any = {}) { +function getJSONfeed (url: string, feed: FeedType, query: any = {}, statusCodeExpected = 200) { const path = '/feeds/' + feed + '.json' return request(url) .get(path) .query(query) .set('Accept', 'application/json') - .expect(200) + .expect(statusCodeExpected) .expect('Content-Type', /json/) } -- cgit v1.2.3