Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dknopik committed Feb 3, 2025
1 parent c5ffb7d commit 240c8b1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions anchor/common/ssv_network_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,18 @@ fn read<T: FromStr>(file: &Path) -> Result<T, String> {
.parse()
.map_err(|_| format!("Unable to parse {file:?}"))
}

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

#[test]
fn test_holesky() {
SsvNetworkConfig::constant("holesky").unwrap().unwrap();
}

#[test]
fn test_mainnet() {
SsvNetworkConfig::constant("mainnet").unwrap().unwrap();
}
}

0 comments on commit 240c8b1

Please sign in to comment.