From 6d8ef4d47cda32536293745ec6e88c29431553b2 Mon Sep 17 00:00:00 2001 From: Vladimir Ignatov Date: Mon, 26 Jul 2021 16:23:49 -0400 Subject: [PATCH] Use agent instead of request(app) #57 --- test/fhir-servers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fhir-servers.js b/test/fhir-servers.js index 22eef095..9a6a9b3e 100644 --- a/test/fhir-servers.js +++ b/test/fhir-servers.js @@ -286,7 +286,7 @@ for(const FHIR_VERSION in TESTED_FHIR_SERVERS) { const nextURL = new URL(next.url) - const res2 = await request(app).get(nextURL.pathname + nextURL.search) + const res2 = await agent.get(nextURL.pathname + nextURL.search) if (!Array.isArray(res2.body.link)) { throw new Error("No links found on second page");