Fix redirect test call signatures

This commit is contained in:
Oskar Eichler 2026-08-30 15:01:28 +07:00
parent b82428379e
commit 5c81fd83ac

View file

@ -71,13 +71,13 @@ describe('requestFollowRedirectsWithSameMethodAndBody', () => {
it('rejects a redirect without a Location header', async () => {
await expectAsync(
requestFollowRedirectsWithSameMethodAndBody(`${origin}/missing`)
requestFollowRedirectsWithSameMethodAndBody(`${origin}/missing`, {})
).toBeRejectedWithError('Redirect response is missing a Location header');
});
it('rejects after the redirect limit', async () => {
await expectAsync(
requestFollowRedirectsWithSameMethodAndBody(`${origin}/loop`)
requestFollowRedirectsWithSameMethodAndBody(`${origin}/loop`, {})
).toBeRejectedWithError('Too many redirects');
});