mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-10-22 04:21:00 +00:00
Fix redirect test call signatures
This commit is contained in:
parent
b82428379e
commit
5c81fd83ac
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue