Skip to content

Commit

Permalink
Fix outdated usage of Purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Rothenberger committed Dec 21, 2023
1 parent aa72e45 commit 5731151
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::v2_api::authn_method_test_helpers::{
use canister_tests::api::internet_identity::api_v2;
use canister_tests::framework::{env, install_ii_canister, II_WASM};
use ic_test_state_machine_client::CallError;
use internet_identity_interface::internet_identity::types::Purpose;
use internet_identity_interface::internet_identity::types::AuthnMethodPurpose;

#[test]
fn should_get_identity_authn_info() -> Result<(), CallError> {
Expand All @@ -20,15 +20,15 @@ fn should_get_identity_authn_info() -> Result<(), CallError> {
identity_authn_info.authn_methods,
authn_methods
.iter()
.filter(|x| x.purpose == Purpose::Authentication)
.filter(|x| x.purpose == AuthnMethodPurpose::Authentication)
.map(|x| x.authn_method.clone())
.collect::<Vec<_>>()
);
assert_eq!(
identity_authn_info.recovery_authn_methods,
authn_methods
.iter()
.filter(|x| x.purpose == Purpose::Recovery)
.filter(|x| x.purpose == AuthnMethodPurpose::Recovery)
.map(|x| x.authn_method.clone())
.collect::<Vec<_>>()
);
Expand Down

0 comments on commit 5731151

Please sign in to comment.