From b614d0a754b3432dac1624410f37579712decc41 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 23 Oct 2024 12:00:30 -0400 Subject: Tests for `DELETE /api/messages/:id` --- src/test/fixtures/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/fixtures/mod.rs') diff --git a/src/test/fixtures/mod.rs b/src/test/fixtures/mod.rs index 5609ebc..9111811 100644 --- a/src/test/fixtures/mod.rs +++ b/src/test/fixtures/mod.rs @@ -21,6 +21,11 @@ pub fn now() -> RequestedAt { Utc::now().into() } +pub fn old() -> RequestedAt { + let timestamp = Utc::now() - TimeDelta::days(95); + timestamp.into() +} + pub fn ancient() -> RequestedAt { let timestamp = Utc::now() - TimeDelta::days(365); timestamp.into() -- cgit v1.2.3