Skip to content

Commit f983c2e

Browse files
committed
fix redirect now being thrown (only relevant in test)
1 parent 8cfeb81 commit f983c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sveltekit/test/common/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('isHttpError', () => {
3434
expect(isHttpError(httpErrorObject)).toBe(true);
3535
});
3636

37-
it.each([new Error(), redirect(301, '/users/id'), 'string error', { status: 404 }, { body: 'Not found' }])(
37+
it.each([new Error(), { status: 301, message: '/users/id' }, 'string error', { status: 404 }, { body: 'Not found' }])(
3838
'returns `false` for other thrown objects (%s)',
3939
httpErrorObject => {
4040
expect(isHttpError(httpErrorObject)).toBe(false);

0 commit comments

Comments
 (0)