Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update Photos memory lane age tests

Neeraj Gupta5a2a8982595c
diff --git a/mobile/apps/photos/test/services/memory_lane/memory_lane_selector_test.dart b/mobile/apps/photos/test/services/memory_lane/memory_lane_selector_test.dart
index 55cdad320e..a873816925 100644
--- a/mobile/apps/photos/test/services/memory_lane/memory_lane_selector_test.dart
+++ b/mobile/apps/photos/test/services/memory_lane/memory_lane_selector_test.dart
@@ -308,13 +308,13 @@ void main() {
);
});
- test("computes fifth birthday cutoff", () {
+ test("computes third birthday cutoff", () {
final birthDate = DateTime(2010, 6, 15);
final cutoff = MemoryLaneService.minimumEligibleCreationTimeMicros(
"2010-06-15",
);
final expected =
- DateTime(birthDate.year + 5, birthDate.month, birthDate.day)
+ DateTime(birthDate.year + 3, birthDate.month, birthDate.day)
.microsecondsSinceEpoch;
expect(cutoff, equals(expected));
});
@@ -323,7 +323,7 @@ void main() {
final cutoff = MemoryLaneService.minimumEligibleCreationTimeMicros(
"2012-02-29",
);
- final expected = DateTime(2017, 2, 28).microsecondsSinceEpoch;
+ final expected = DateTime(2015, 2, 28).microsecondsSinceEpoch;
expect(cutoff, equals(expected));
});
});
diff --git a/mobile/apps/photos/test/services/memory_lane/memory_lane_service_test.dart b/mobile/apps/photos/test/services/memory_lane/memory_lane_service_test.dart
index 1e35538149..1a6817a673 100644
--- a/mobile/apps/photos/test/services/memory_lane/memory_lane_service_test.dart
+++ b/mobile/apps/photos/test/services/memory_lane/memory_lane_service_test.dart
@@ -50,13 +50,13 @@ void main() {
DateTime.fromMicrosecondsSinceEpoch(
MemoryLaneService.minimumEligibleCreationTimeMicros("2016-02-29")!,
),
- DateTime(2021, 2, 28),
+ DateTime(2019, 2, 28),
);
expect(
DateTime.fromMicrosecondsSinceEpoch(
MemoryLaneService.minimumEligibleCreationTimeMicros("2010-10-15")!,
),
- DateTime(2015, 10, 15),
+ DateTime(2013, 10, 15),
);
});
});