Skip to content

Commit 520bce0

Browse files
committed
test: add test
1 parent 132fd17 commit 520bce0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contract/src/score/tests.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use fake::Fake;
44
use near_sdk::{
5+
json_types::I64,
56
store::LookupMap,
67
test_utils::test_env::{alice, bob},
78
NearToken,
@@ -81,6 +82,8 @@ fn same_interest_in_score_jar_as_in_const_jar() {
8182
.jar(SCORE_JAR, JarField::Timezone(Timezone::hour_shift(3)))
8283
.build();
8384

85+
assert_eq!(ctx.contract().get_timezone(alice()), Some(I64(10800000)));
86+
8487
// Difference of 1 is okay because the missing yoctosweat is stored in claim remainder
8588
// and will eventually be added to total claimed balance
8689
fn compare_interest(ctx: &Context) {

0 commit comments

Comments
 (0)