Skip to content

Commit

Permalink
test(e2e): Fix typing in error routes in Next.js e2e tests (#9062)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Sep 20, 2023
1 parent cd0bc3b commit 166447f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export async function PATCH() {
return NextResponse.json({ name: 'John Doe' }, { status: 401 });
}

export async function DELETE() {
export async function DELETE(): Promise<Response> {
throw new Error('route-handler-edge-error');
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export async function PUT() {
export async function PUT(): Promise<Response> {
throw new Error('route-handler-error');
}

0 comments on commit 166447f

Please sign in to comment.