Skip to content

Commit

Permalink
test(interface): add setUpAll
Browse files Browse the repository at this point in the history
  • Loading branch information
criistian14 committed Jan 19, 2025
1 parent 2996b69 commit a41a15d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ void main() {
);
const tFilter = FilterType.natural;

setUpAll(() {
methodChannelFlutterDocumentScanner = MethodChannelFlutterDocumentScanner();
});

void setUpSuccess({
Object? findContourPhoto,
bool setNullFindContourPhoto = false,
Expand All @@ -40,8 +44,6 @@ void main() {
Object? applyFilter,
bool setNullApplyFilter = false,
}) {
methodChannelFlutterDocumentScanner = MethodChannelFlutterDocumentScanner();

TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(
methodChannelFlutterDocumentScanner.methodChannel,
Expand Down Expand Up @@ -92,8 +94,6 @@ void main() {
Exception? adjustingPerspective,
Exception? applyFilter,
}) {
methodChannelFlutterDocumentScanner = MethodChannelFlutterDocumentScanner();

TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(
methodChannelFlutterDocumentScanner.methodChannel,
Expand Down

0 comments on commit a41a15d

Please sign in to comment.