Skip to content

Commit

Permalink
include checks for try-runtime and runtime-benchmarks features in run…
Browse files Browse the repository at this point in the history
…time manifest
  • Loading branch information
weezy20 committed Mar 21, 2024
1 parent 4309bb2 commit 0363844
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,18 @@ fn add_parachain_pallet_template() {
.count(),
1
);
let rt_bench = toml["features"]["runtime-benchmarks"].as_value().unwrap().as_array().unwrap();
assert_eq!(
rt_bench.iter()
.filter(|val| val.as_str().unwrap() == "pallet-parachain-template/runtime-benchmarks")
.count(),
1
);
let try_rt = toml["features"]["try-runtime"].as_value().unwrap().as_array().unwrap();
assert_eq!(
try_rt.iter()
.filter(|val| val.as_str().unwrap() == "pallet-parachain-template/try-runtime")
.count(),
1
);
}

0 comments on commit 0363844

Please sign in to comment.