Skip to content

Commit

Permalink
fix(cli): ammend template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
al3mart committed May 1, 2024
1 parent b206a72 commit efb19d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/pop-parachains/src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ mod tests {
assert_eq!(template.matches(&Provider::Pop), false);
assert_eq!(template.matches(&Provider::Parity), true);

template = Template::Nfts;
template = Template::Assets;
assert_eq!(template.matches(&Provider::Pop), true);
assert_eq!(template.matches(&Provider::Parity), false);
}
Expand All @@ -163,7 +163,7 @@ mod tests {
fn test_convert_string_to_template() {
assert_eq!(Template::from_str("base").unwrap(), Template::Base);
assert_eq!(Template::from_str("").unwrap_or_default(), Template::Base);
assert_eq!(Template::from_str("nfts").unwrap(), Template::Nfts);
assert_eq!(Template::from_str("assets").unwrap(), Template::Assets);
assert_eq!(Template::from_str("cpt").unwrap(), Template::ParityContracts);
assert_eq!(Template::from_str("fpt").unwrap(), Template::ParityFPT);
}
Expand Down

0 comments on commit efb19d4

Please sign in to comment.