Skip to content

Commit 6db36d8

Browse files
committed
Fix GitHub OAuth callback test response handling
1 parent bbacdeb commit 6db36d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes/_auth+/auth.$provider.callback.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test('when auth fails, send the user to login with a toast', async () => {
3535
consoleError.mockImplementation(() => {})
3636
server.use(
3737
http.post('https://github.com/login/oauth/access_token', async () => {
38-
return new Response('error', { status: 400 })
38+
return new Response(null, { status: 400 })
3939
}),
4040
)
4141
const request = await setupRequest()

0 commit comments

Comments
 (0)