Expect empty array instead of undefined

This commit is contained in:
Ferenc Hammerl 2023-03-01 15:09:48 +00:00
parent 833d5cadab
commit c285ab1ccd

View File

@ -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()