test(cli): add chain args test (#1488)

This commit is contained in:
Matthias Seitz
2023-02-22 13:05:16 +01:00
committed by GitHub
parent 8f4e6f6974
commit eccafd1bed
4 changed files with 41 additions and 3 deletions

View File

@@ -29,3 +29,16 @@ pub fn genesis_value_parser(s: &str) -> Result<ChainSpec, eyre::Error> {
}
})
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn parse_chain_spec() {
for chain in ["mainnet", "sepolia", "goerli"] {
chain_spec_value_parser(chain).unwrap();
genesis_value_parser(chain).unwrap();
}
}
}