Skip to content

fix: await async authorize* helpers in tests#24

Merged
dougdevitre merged 1 commit intomainfrom
fix/stale-authorize-tests
Apr 14, 2026
Merged

fix: await async authorize* helpers in tests#24
dougdevitre merged 1 commit intomainfrom
fix/stale-authorize-tests

Conversation

@dougdevitre
Copy link
Copy Markdown
Owner

The two unset-key tests compared a Promise to null (always fails). Adds await + matches new return shapes after the Clerk JWT refactor. Restores green main and unblocks the two open dependabot PRs (#22, #23).

authorizeOutbound was refactored to async (Promise<{result, userId?}>)
and authorizeRecords to async (Promise<null | Response>) when Clerk JWT
support was added, but the unset-key tests still called them synchronously
and compared the returned Promise to null — always failing.

Adds await + matches the new return shapes. 286/286 pass locally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dougdevitre dougdevitre merged commit 7a0aa74 into main Apr 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant