Skip to content

Commit 9c5ecad

Browse files
committed
Cleanup
1 parent 15fd61e commit 9c5ecad

File tree

1 file changed

+15
-39
lines changed

1 file changed

+15
-39
lines changed

zomes/hc_zome_trust_atom/tests/trust_atom_tests.rs

+15-39
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ pub async fn test_create_trust_atom() {
5555
)]);
5656

5757
let trust_atom_input = TrustAtomInput {
58-
source: EntryHash::from(agent.clone()),
59-
target: AnyLinkableHash::from(target_entry_hash.clone()),
58+
source: EntryHash::from(agent.clone()),
59+
target: AnyLinkableHash::from(target_entry_hash.clone()),
6060
prefix: None,
6161
content: Some(content.clone()),
6262
value: Some(value.clone()),
@@ -294,8 +294,8 @@ pub async fn test_query_mine() {
294294
&cell1.zome("trust_atom"),
295295
"create_trust_atom",
296296
TrustAtomInput {
297-
source: agent.clone().into(),
298-
target: AnyLinkableHash::from(target_entry_hash.clone()),
297+
source: agent.clone().into(),
298+
target: AnyLinkableHash::from(target_entry_hash.clone()),
299299
prefix: None,
300300
content: Some("sushi".to_string()),
301301
value: Some("0.8".to_string()),
@@ -332,9 +332,9 @@ target: AnyLinkableHash::from(target_entry_hash.clone()),
332332
assert_eq!(
333333
*trust_atom,
334334
TrustAtom {
335-
source_entry_hash: AnyLinkableHashB64::from(AnyLinkableHash::from(agent.clone())),
336-
target_entry_hash: AnyLinkableHashB64::from(AnyLinkableHash::from(target_entry_hash)),
337-
prefix: None,
335+
source_entry_hash: AnyLinkableHashB64::from(AnyLinkableHash::from(agent.clone())),
336+
target_entry_hash: AnyLinkableHashB64::from(AnyLinkableHash::from(target_entry_hash)),
337+
prefix: None,
338338
content: Some("sushi".to_string()),
339339
value: Some(".800000000".to_string()),
340340
extra: None,
@@ -366,8 +366,8 @@ pub async fn test_query_mine_with_content_starts_with() {
366366
&cell1.zome("trust_atom"),
367367
"create_trust_atom",
368368
TrustAtomInput {
369-
source: agent.clone().into(),
370-
target: AnyLinkableHash::from(target_entry_hash.clone()),
369+
source: agent.clone().into(),
370+
target: AnyLinkableHash::from(target_entry_hash.clone()),
371371
prefix: None,
372372
content: Some(content.into()),
373373
value: Some("0.8".into()),
@@ -432,8 +432,8 @@ pub async fn test_query_mine_with_content_full() {
432432
&cell1.zome("trust_atom"),
433433
"create_trust_atom",
434434
TrustAtomInput {
435-
source: agent.clone().into(),
436-
target: AnyLinkableHash::from(target_entry_hash.clone()),
435+
source: agent.clone().into(),
436+
target: AnyLinkableHash::from(target_entry_hash.clone()),
437437
prefix: None,
438438
content: Some(content_full.into()),
439439
value: Some("0.8".into()),
@@ -518,31 +518,6 @@ pub async fn test_get_extra() {
518518
mock_extra_entry_hash,
519519
)
520520
.await;
521-
522-
// <<<<<<< HEAD
523-
let field1 = mock_extra_data
524-
.fields
525-
.get_key_value(&"extra_stuff".to_string())
526-
.unwrap();
527-
let field2 = mock_extra_data
528-
.fields
529-
.get_key_value(&"another_thing".to_string())
530-
.unwrap();
531-
532-
assert_eq!(
533-
field1,
534-
(
535-
&"extra_stuff".to_string(),
536-
&"Say some extra stuff here".to_string()
537-
)
538-
);
539-
assert_eq!(
540-
field2,
541-
(
542-
&"another_thing".to_string(),
543-
&"Put more information here".to_string()
544-
)
545-
);
546521
}
547522

548523
#[tokio::test(flavor = "multi_thread")]
@@ -599,13 +574,14 @@ pub async fn test_get_entry_by_headerhash() {
599574
// assert_eq!(mock_trust_atom, fetched_atom);
600575
// assert_eq!(fetched_atom.target, ipfs_address);
601576
// }
577+
602578
// =======
603579
// =======
604580
// =======
605581
// =======
606-
assert_eq!(extra_map, mock_extra_data.clone().field);
607-
assert_eq!(mock_extra_data.clone(), mock_entry.clone());
608-
}
582+
// assert_eq!(extra_map, mock_extra_data.clone().field);
583+
// assert_eq!(mock_extra_data.clone(), mock_entry.clone());
584+
// }
609585

610586
#[tokio::test(flavor = "multi_thread")]
611587
pub async fn test_create_trust_atom_with_empty_chunks() {

0 commit comments

Comments
 (0)