Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <[email protected]>
  • Loading branch information
gmulhearn-anonyome committed Dec 9, 2024
1 parent 56c282f commit 9b13ff7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aries/aries_vcx_ledger/src/ledger/cheqd/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use anoncreds_types::data_types::{
identifiers::{cred_def_id::CredentialDefinitionId, schema_id::SchemaId},
ledger::{
cred_def::{CredentialDefinitionData, SignatureType},
rev_reg_def::{RegistryType, RevocationRegistryDefinitionValue}, rev_status_list::serde_revocation_list,
rev_reg_def::{RegistryType, RevocationRegistryDefinitionValue},
rev_status_list::serde_revocation_list,
},
};
use serde::{Deserialize, Serialize};
Expand Down
9 changes: 7 additions & 2 deletions did_core/did_methods/did_cheqd/src/resolution/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,9 @@ mod unit_tests {

#[tokio::test]
async fn test_resolve_resource_fails_if_incomplete_query() {
let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf".parse().unwrap();
let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf"
.parse()
.unwrap();
let resolver = DidCheqdResolver::new(Default::default());
let e = resolver.resolve_resource(&url).await.unwrap_err();
assert!(matches!(e, DidCheqdError::InvalidDidUrl(_)));
Expand All @@ -499,7 +501,10 @@ mod unit_tests {
#[tokio::test]
async fn test_resolve_resource_fails_if_invalid_resource_time() {
// use epoch instead of XML DateTime
let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf&resourceType=fdsa&resourceVersionTime=12341234".parse().unwrap();
let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf&resourceType=fdsa&\
resourceVersionTime=12341234"
.parse()
.unwrap();
let resolver = DidCheqdResolver::new(Default::default());
let e = resolver.resolve_resource(&url).await.unwrap_err();
assert!(matches!(e, DidCheqdError::InvalidDidUrl(_)));
Expand Down

0 comments on commit 9b13ff7

Please sign in to comment.