You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-28 11:02:02 +03:00
Fix tests in oauth2 errors serialization
This commit is contained in:
@ -357,7 +357,10 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn serialize_error() {
|
||||
let expected = json!({"error": "invalid_grant"});
|
||||
let expected = json!({
|
||||
"error": "invalid_grant",
|
||||
"error_description": "The provided access grant is invalid, expired, or revoked."
|
||||
});
|
||||
let actual = serde_json::to_value(InvalidGrant.into_response()).unwrap();
|
||||
assert_eq!(expected, actual);
|
||||
}
|
||||
|
Reference in New Issue
Block a user