Use constant durations in more places (#24306)
This commit is contained in:
committed by
Devon Carew
parent
2ae1379995
commit
29d5210d8b
@@ -15,7 +15,7 @@ void main() {
|
||||
|
||||
test('can find a time ago', () {
|
||||
final SystemClock clock = SystemClock.fixed(DateTime(1991, 8, 23));
|
||||
expect(clock.ago(Duration(days: 10)), DateTime(1991, 8, 13));
|
||||
expect(clock.ago(const Duration(days: 10)), DateTime(1991, 8, 13));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user