Skip to content

Commit

Permalink
enahnce readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko committed Oct 7, 2024
1 parent b0f6e24 commit 7e93dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nextjs/src/server/__tests__/clerkMiddleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@ describe('Dev Browser JWT when redirecting to cross origin for page requests', f
});

const resp = await clerkMiddleware(async auth => {
await auth().protect();
const { protect } = await auth();
protect();
})(req, {} as NextFetchEvent);

expect(resp?.status).toEqual(307);
Expand Down

0 comments on commit 7e93dd6

Please sign in to comment.