Skip to content

test(server): expect null body from HTTP API authorize() with no redirect#26515

Merged
kitlangton merged 1 commit into
devfrom
kit/fix-authorize-test
May 9, 2026
Merged

test(server): expect null body from HTTP API authorize() with no redirect#26515
kitlangton merged 1 commit into
devfrom
kit/fix-authorize-test

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Followup to #26474. The parity test still asserted the HTTP API response equals Hono's empty body; #26474 changed HTTP API to serialize undefined as JSON null so clients can .json() parse uniformly. Update the assertion accordingly.

…rect

#26474 changed the HTTP API authorize handler to serialize an
undefined service result as JSON `null` (so clients can `.json()`
parse uniformly) instead of an empty body. The parity test still
expected the HTTP API response to match Hono's empty body. Update
the assertion to expect the new `null` body. The legacy Hono
assertion is unchanged.
@kitlangton kitlangton merged commit 32684e7 into dev May 9, 2026
10 checks passed
@kitlangton kitlangton deleted the kit/fix-authorize-test branch May 9, 2026 12:50
katosun2 pushed a commit to katosun2/opencode that referenced this pull request May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant