don't
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

test(lexicon): fix broken unit test

Signed-off-by: tjh <did:plc:65gha4t3avpfpzmvpbwovss7>

+7 -12
+2 -2
crates/lexicon/src/sh/tangled/repo/create.rs
··· 29 29 30 30 #[test] 31 31 fn can_deserialize_required() { 32 - const REQUEST: &str = r#"{"rkey":"3m4xo72lo4322"}"#; 32 + const REQUEST: &str = r#"{"rkey":"3m24udbjajf22"}"#; 33 33 34 34 let input: Input = serde_json::from_str(REQUEST).expect("should deserialize"); 35 - assert_eq!(input.rkey, "3m4xo72lo4322"); 35 + assert_eq!(input.rkey, "3m24udbjajf22"); 36 36 assert!(input.default_branch.is_none()); 37 37 assert!(input.source.is_none()); 38 38 }
+5 -10
crates/lexicon/src/sh/tangled/repo/delete.rs
··· 28 28 29 29 #[test] 30 30 fn can_deserialize_required() { 31 - const REQUEST: &str = r#"{"rkey":"3m4xo72lo4322"}"#; 31 + const REQUEST: &str = 32 + r#"{"did":"did:plc:65gha4t3avpfpzmvpbwovss7","rkey":"3m24udbjajf22","name":"gordian"}"#; 32 33 33 34 let input: Input = serde_json::from_str(REQUEST).expect("should deserialize"); 34 - assert_eq!(input.rkey, "3m4xo72lo4322"); 35 - } 36 - 37 - #[test] 38 - fn can_deserialize_complete() { 39 - const REQUEST: &str = r#"{"rkey":"3m4xo72lo4322"}"#; 40 - 41 - let input: Input = serde_json::from_str(REQUEST).expect("should deserialize"); 42 - assert_eq!(input.rkey, "3m4xo72lo4322"); 35 + assert_eq!(input.did.as_str(), "did:plc:65gha4t3avpfpzmvpbwovss7"); 36 + assert_eq!(input.rkey, "3m24udbjajf22"); 37 + assert_eq!(input.name, "gordian"); 43 38 } 44 39 }