Skip to content

Commit

Permalink
add test_unix_timestamp_to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Apr 5, 2024
1 parent 40b587c commit 6542b33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli-output/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -974,4 +974,9 @@ Rewards:
"abcdefghijklmnopqrstuvwxyz12345 (1111..1111)"
);
}

#[test]
fn test_unix_timestamp_to_string() {
assert_eq!(unix_timestamp_to_string(1628633791), "2021-08-10T22:16:31Z");
}
}

0 comments on commit 6542b33

Please sign in to comment.