Remove no longer applicable CloudFlare header test

Closes #3773
This commit is contained in:
Francis Cao 2025-11-22 22:28:24 -08:00
parent 099c8bf1b4
commit 67981db524

View file

@ -17,12 +17,6 @@ test('getIpAddress: Standard header', () => {
expect(getIpAddress(new Headers({ 'x-forwarded-for': IP }))).toEqual(IP);
});
test('getIpAddress: CloudFlare header is lower priority than standard header', () => {
expect(getIpAddress(new Headers({ 'cf-connecting-ip': BAD_IP, 'x-forwarded-for': IP }))).toEqual(
IP,
);
});
test('getIpAddress: No header', () => {
expect(getIpAddress(new Headers())).toEqual(null);
});