Skip to content

Commit

Permalink
Add small test
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Feb 8, 2024
1 parent 4994e50 commit d2043ef
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 35 deletions.
172 changes: 139 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ serde = "1.0"
serde_json = "1.0"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
async-trait = "0.1"
jsonrpsee = { version = "0.21", features = ["macros", "server", "client-core"] }
jsonrpsee = { version = "0.22", features = ["macros", "server", "client-core"] }
anyhow = "1.0"
thiserror = "1.0"
ethers = { version = "2.0.11", features = ["abigen"] }
ctor = "0.2"
lib-didethresolver = { git = "https://github.com/xmtp/didethresolver", branch = "main" }
# lib-didethresolver = { git = "https://github.com/xmtp/didethresolver", branch = "main" }
gateway-types = { path = "./gateway-types" }
rustc-hex = "2.1"
hex = "0.4"
11 changes: 11 additions & 0 deletions gateway-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,14 @@ impl fmt::Display for Status {
}
}
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn test_status_display() {
assert_eq!(format!("{}", Status::Completed), "completed");
assert_eq!(format!("{}", Status::Failed), "failed");
}
}

0 comments on commit d2043ef

Please sign in to comment.