From c285ab1ccd782eb7a515fb0224aa761a01e731f1 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Wed, 1 Mar 2023 15:09:48 +0000 Subject: [PATCH] Expect empty array instead of undefined --- packages/http-client/__tests__/proxy.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client/__tests__/proxy.test.ts b/packages/http-client/__tests__/proxy.test.ts index 368e0d29..ad8401ca 100644 --- a/packages/http-client/__tests__/proxy.test.ts +++ b/packages/http-client/__tests__/proxy.test.ts @@ -240,7 +240,7 @@ it('HttpClient bypasses proxy for loopback addresses (localhost, ::1, 127.*)', a const body: string = await res.readBody() expect(body).toEqual(''); // proxy at _proxyUrl was ignored - expect(_proxyConnects).toEqual(undefined) + expect(_proxyConnects).toEqual([]) } finally { await server.close()