MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_format_timestamp_relative_weeks

Function test_format_timestamp_relative_weeks

atomic-cli/src/commands/mod.rs:761–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

759
760 #[test]
761 fn test_format_timestamp_relative_weeks() {
762 let ts = Utc::now() - chrono::Duration::weeks(2);
763 let formatted = format_timestamp_relative(&ts);
764 assert!(formatted.contains("weeks ago"));
765 }
766
767 // -------------------------------------------------------------------------
768 // Size Formatting Tests

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected