Skip to content

Commit

Permalink
chore: Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 21, 2023
1 parent 6fdac34 commit 6205c20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions extensions/warp-ipfs/tests/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ mod test {
let image = account.identity_picture(&did).await?;

assert_eq!(image.data(), b"picture");
assert!(image.image_type().eq(&FileType::Generic));
assert!(image
.image_type()
.eq(&FileType::Mime("application/octet-stream".parse().unwrap())));
Ok(())
}

Expand All @@ -329,7 +331,9 @@ mod test {
let image = account.identity_banner(&did).await?;

assert_eq!(image.data(), b"banner");
assert!(image.image_type().eq(&FileType::Generic));
assert!(image
.image_type()
.eq(&FileType::Mime("application/octet-stream".parse().unwrap())));
Ok(())
}

Expand Down
1 change: 1 addition & 0 deletions extensions/warp-ipfs/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ pub async fn create_accounts_and_chat(
Ok(accounts)
}

#[allow(dead_code)]
pub const PROFILE_IMAGE: &[u8] = &[
137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 1, 144, 0, 0, 1, 144, 8, 2,
0, 0, 0, 15, 221, 161, 155, 0, 0, 31, 134, 73, 68, 65, 84, 120, 156, 236, 221, 121, 92, 85,
Expand Down

0 comments on commit 6205c20

Please sign in to comment.