Skip to content

Commit 4e7b305

Browse files
committed
test(persistence): Tighten isSameDateAs to also enforce millisecond precision.
1 parent 364b37a commit 4e7b305

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/stream_chat_persistence/test/src/utils/date_matcher.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class _IsSameDateAs extends Matcher {
1515
date.day == targetDate?.day &&
1616
date.hour == targetDate?.hour &&
1717
date.minute == targetDate?.minute &&
18-
date.second == targetDate?.second;
18+
date.second == targetDate?.second &&
19+
date.millisecond == targetDate?.millisecond;
1920
}
2021

2122
@override

0 commit comments

Comments
 (0)