[Tests] [pallet-timestamp] Add tests for OnTimestampSet. (#11323)

* NF: move tests mod to another file

* NF: separate test setup to mock mod

* test: check if OnTimestampSet ran correctly.

* docs: add license header.

* fixup! NF: separate test setup to mock mod

* NF: formatting changes
This commit is contained in:
Tarek Mohamed Abdalla
2022-05-13 19:21:21 +02:00
committed by GitHub
parent 9cb699bfe9
commit 685162cfd6
4 changed files with 168 additions and 105 deletions
@@ -56,5 +56,5 @@ benchmarks! {
ensure!(!DidUpdate::<T>::exists(), "Time was not removed.");
}
impl_benchmark_test_suite!(Timestamp, crate::tests::new_test_ext(), crate::tests::Test);
impl_benchmark_test_suite!(Timestamp, crate::mock::new_test_ext(), crate::mock::Test);
}