add test for account recovery confirmation

This commit is contained in:
Carson McManus 2021-08-14 12:29:39 -04:00
parent 2fa4be52d9
commit 1825acdbb3

View file

@ -394,4 +394,21 @@ mod tests {
}
);
}
#[test]
fn test_parse_phone_number_change() {
let text = include_str!("fixtures/confirmations/phone-number-change.html");
let confirmations = parse_confirmations(text.into()).unwrap();
assert_eq!(confirmations.len(), 1);
assert_eq!(
confirmations[0],
Confirmation {
id: 9931444017,
key: 9746021299562127894,
conf_type: ConfirmationType::AccountRecovery,
creator: 2861625242839108895,
description: "Account recovery Just now".into(),
}
);
}
}