Skip to content

Commit

Permalink
Formatting (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaranovstonfi authored Dec 24, 2024
1 parent df765d6 commit ad30374
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions client/tests/nft_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ use std::str::FromStr;
use num_bigint::BigUint;
use sha2::{Digest, Sha256};
use tokio_test::assert_ok;
use tonlib_client::contract::{
NftCollectionContract, NftItemContract, TonContractFactory,
};
use tonlib_client::contract::{NftCollectionContract, NftItemContract, TonContractFactory};
use tonlib_client::meta::MetaDataContent;
use tonlib_core::{TonAddress, TonHash};

Expand Down Expand Up @@ -67,9 +65,12 @@ async fn test_get_nft_data_is_valid() -> anyhow::Result<()> {
assert!(res.init);
assert_eq!(res.index, expected_index);
assert_eq!(res.collection_address, expected_collection_address);
assert_eq!(res.individual_content, MetaDataContent::External {
uri: "https://nft.fragment.com/number/88805397120.json".to_string(),
});
assert_eq!(
res.individual_content,
MetaDataContent::External {
uri: "https://nft.fragment.com/number/88805397120.json".to_string(),
}
);

Ok(())
}
Expand Down Expand Up @@ -109,9 +110,12 @@ async fn test_get_collection_data_is_valid() -> anyhow::Result<()> {
let res = assert_ok!(contract.get_collection_data().await);

assert_eq!(res.next_item_index, -1);
assert_eq!(res.collection_content, MetaDataContent::External {
uri: "https://nft.fragment.com/numbers.json".to_string(),
});
assert_eq!(
res.collection_content,
MetaDataContent::External {
uri: "https://nft.fragment.com/numbers.json".to_string(),
}
);
Ok(())
}

Expand Down

0 comments on commit ad30374

Please sign in to comment.