Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Aug 13, 2023
1 parent b01cd2b commit efb6c16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/flutter_hooks/test/mock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ Element _rootOf(Element element) {
void hotReload(WidgetTester tester) {
final root = _rootOf(tester.allElements.first);

TestWidgetsFlutterBinding.ensureInitialized()
.buildOwner
?.reassemble(root, null);
TestWidgetsFlutterBinding.ensureInitialized().buildOwner?.reassemble(root);
}

class MockSetState extends Mock {
Expand Down

0 comments on commit efb6c16

Please sign in to comment.