storkit: merge 449_bug_oauth_callback_url_ignores_port_cli_flag

This commit is contained in:
dave
2026-03-31 14:52:18 +00:00
parent dc4bac3a85
commit 57e0197d75
7 changed files with 44 additions and 8 deletions
+7
View File
@@ -423,6 +423,13 @@ mod tests {
assert_eq!(state.callback_url(), "http://localhost:3001/callback");
}
#[test]
fn oauth_state_callback_url_uses_given_port() {
// Ensure OAuthState::new uses the port passed to it, not a hardcoded value.
let state = OAuthState::new(9876);
assert_eq!(state.callback_url(), "http://localhost:9876/callback");
}
#[tokio::test]
async fn html_response_contains_title_and_message() {
let resp = html_response(StatusCode::OK, "Test Title", "Test message");