From 5c81fd83ac2e8ff0734ac81537ccdc9ee52922cb Mon Sep 17 00:00:00 2001 From: Oskar Eichler Date: Sun, 30 Aug 2026 15:01:28 +0700 Subject: [PATCH] Fix redirect test call signatures --- src/shadowbox/infrastructure/follow_redirects.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shadowbox/infrastructure/follow_redirects.spec.ts b/src/shadowbox/infrastructure/follow_redirects.spec.ts index b8cd1c46..4772683b 100644 --- a/src/shadowbox/infrastructure/follow_redirects.spec.ts +++ b/src/shadowbox/infrastructure/follow_redirects.spec.ts @@ -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'); });