Skip to content

Commit

Permalink
fix locator builder
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed May 6, 2024
1 parent feaa18c commit 736acca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 331 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ extension on BuilderOptions {
Map<String, dynamic> get services => config['services'] ?? {};

bool get mockNavService => services['navigation'] ?? true;

bool get mockDialogService => services['dialog'] ?? true;

bool get mockBottomSheetService => services['bottomSheet'] ?? true;
}

class TestLocatorBuilder implements Builder {
Expand Down Expand Up @@ -161,16 +157,6 @@ class TestLocatorBuilder implements Builder {
refer('NavigationService', 'package:fluorflow/fluorflow.dart'));
}

if (options.mockDialogService) {
addInternalType(
refer('DialogService', 'package:fluorflow/fluorflow.dart'));
}

if (options.mockBottomSheetService) {
addInternalType(
refer('BottomSheetService', 'package:fluorflow/fluorflow.dart'));
}

setupTestLocatorMethod = setupTestLocatorMethod.rebuild((b) => b
..body = setupTestLocatorMethodBody
..annotations.add(
Expand Down
Loading

0 comments on commit 736acca

Please sign in to comment.