Skip to content

Commit

Permalink
update json test
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Dec 19, 2023
1 parent d66d259 commit 6ed43d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwn/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mod tests {
let ipld = data.decode(&data.to_bytes());
let encoded = data.encode(&ipld);
let encoded_string = String::from_utf8(encoded).expect("Failed to convert to string");
assert_eq!(encoded_string, r#"{"foo":"bar"}"#);
assert_eq!(encoded_string, data.0.to_string());

let cid = data.data_cid();
assert_eq!(
Expand Down

0 comments on commit 6ed43d9

Please sign in to comment.