Skip to content
Snippets Groups Projects

tests(cucumber): add certification

Merged Hugo Trentesaux requested to merge hugo-cucumber into master
1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
@@ -201,8 +201,13 @@ async fn certifies(world: &mut DuniterWorld, from: String, to: String) -> Result
// ===== then ====
#[then(regex = r"([a-zA-Z]+) should have (\d+) ĞD")]
async fn should_have(world: &mut DuniterWorld, who: String, amount: u64) -> Result<()> {
#[then(regex = r"([a-zA-Z]+) should have (\d+) (ĞD|cĞD)")]
async fn should_have(
world: &mut DuniterWorld,
who: String,
amount: u64,
unit: String,
) -> Result<()> {
// Parse inputs
let who = AccountKeyring::from_str(&who)
.expect("unknown to")
Loading