From e032aec9b92be25a996923361f83a96a89505254 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Jul 2018 09:52:46 +0200 Subject: Render CSS/title/description tags on server side --- server/tests/utils/requests/requests.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/tests/utils/requests') diff --git a/server/tests/utils/requests/requests.ts b/server/tests/utils/requests/requests.ts index ebde692cd..b88b3ce5b 100644 --- a/server/tests/utils/requests/requests.ts +++ b/server/tests/utils/requests/requests.ts @@ -123,6 +123,13 @@ function makePutBodyRequest (options: { .expect(options.statusCodeExpected) } +function makeHTMLRequest (url: string, path: string) { + return request(url) + .get(path) + .set('Accept', 'text/html') + .expect(200) +} + function updateAvatarRequest (options: { url: string, path: string, @@ -149,6 +156,7 @@ function updateAvatarRequest (options: { // --------------------------------------------------------------------------- export { + makeHTMLRequest, makeGetRequest, makeUploadRequest, makePostBodyRequest, -- cgit v1.2.3