Skip to content

Commit

Permalink
test: use clock inside test to control the current time
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoniobox committed Aug 28, 2024
1 parent 9545994 commit 25e94b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion very_good_flame_game/hooks/test/pre_gen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ void main() {
context = _MockHookContext();
});

final clock = Clock.fixed(DateTime(2020));
test('populates variables', () {
final clock = Clock.fixed(DateTime(2020));
withClock(clock, () {
final vars = {
'project_name': 'my_game',
Expand Down

0 comments on commit 25e94b0

Please sign in to comment.