Skip to content

Commit

Permalink
Update reducer_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Ho-Chih committed Sep 24, 2022
1 parent c019c24 commit 4200ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/reducer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5553,11 +5553,11 @@ main() {

Action action = ExportSvg(type: ExportSvgType.main);

AppState new_state = app_state_reducer(old_state, SetDisablePngCacheUntilActionCompletes(action));
AppState new_state = app_state_reducer(old_state, SetExportSvgActionDelayedForPngCache(action));

expect(new_state.ui_state.export_svg_action_delayed_for_png_cache, action);

new_state = app_state_reducer(new_state, SetDisablePngCacheUntilActionCompletes(null));
new_state = app_state_reducer(new_state, SetExportSvgActionDelayedForPngCache(null));
expect(new_state.ui_state.export_svg_action_delayed_for_png_cache, null);
});
});
Expand Down

0 comments on commit 4200ada

Please sign in to comment.