Skip to content

Commit

Permalink
fix: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexD10S committed May 7, 2024
1 parent 71aa606 commit cad666b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/pop-cli/src/commands/new/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,11 @@ mod tests {

#[test]
fn test_is_template_supported() -> Result<()> {
is_template_supported(&Provider::Pop, &Template::Base)?;
is_template_supported(&Provider::Pop, &Template::Standard)?;
assert!(is_template_supported(&Provider::Pop, &Template::ParityContracts).is_err());
assert!(is_template_supported(&Provider::Pop, &Template::ParityFPT).is_err());

assert!(is_template_supported(&Provider::Parity, &Template::Base).is_err());
assert!(is_template_supported(&Provider::Parity, &Template::Standard).is_err());
is_template_supported(&Provider::Parity, &Template::ParityContracts)?;
is_template_supported(&Provider::Parity, &Template::ParityFPT)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/pop-parachains/src/new_parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ mod tests {
decimals: 18,
initial_endowment: "1000000".to_string(),
};
instantiate_base_template(temp_dir.path(), config, None)?;
instantiate_standard_template(&Template::Standard, temp_dir.path(), config, None)?;
Ok(temp_dir)
}

Expand Down
5 changes: 4 additions & 1 deletion crates/pop-parachains/src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ mod tests {
#[test]
fn test_templates_of_provider() {
let mut provider = Provider::Pop;
assert_eq!(provider.templates(), [&Template::Base, &Template::Assets]);
assert_eq!(
provider.templates(),
[&Template::Standard, &Template::Assets, &Template::Contracts, &Template::EVM]
);
provider = Provider::Parity;
assert_eq!(provider.templates(), [&Template::ParityContracts, &Template::ParityFPT]);
}
Expand Down

0 comments on commit cad666b

Please sign in to comment.