From be7c405ca9dd0f501481ca69356f75f499b7f53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fonkam?= Date: Sat, 20 Jul 2024 17:36:36 -0400 Subject: [PATCH] Ensures that the binding is only initialized once. --- test/no_screenshot_platform_interface_test.dart | 1 - test/no_screenshot_test.dart | 1 - 2 files changed, 2 deletions(-) diff --git a/test/no_screenshot_platform_interface_test.dart b/test/no_screenshot_platform_interface_test.dart index 9d6cd7d..ab0a9d4 100644 --- a/test/no_screenshot_platform_interface_test.dart +++ b/test/no_screenshot_platform_interface_test.dart @@ -36,7 +36,6 @@ class MockNoScreenshotPlatform extends NoScreenshotPlatform { } void main() { - TestWidgetsFlutterBinding.ensureInitialized(); final platform = MockNoScreenshotPlatform(); group('NoScreenshotPlatform', () { diff --git a/test/no_screenshot_test.dart b/test/no_screenshot_test.dart index 24aa52d..2d50cc1 100644 --- a/test/no_screenshot_test.dart +++ b/test/no_screenshot_test.dart @@ -42,7 +42,6 @@ class MockNoScreenshotPlatform } void main() { - WidgetsFlutterBinding.ensureInitialized(); final NoScreenshotPlatform initialPlatform = NoScreenshotPlatform.instance; MockNoScreenshotPlatform fakePlatform = MockNoScreenshotPlatform();