From de24b9878247af34ec211f86652b9ca20a0919da Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 23 Jun 2023 10:31:08 +0200 Subject: [PATCH] typo --- test/data/caffeine_service_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/data/caffeine_service_test.dart b/test/data/caffeine_service_test.dart index a807a21..0c80fac 100644 --- a/test/data/caffeine_service_test.dart +++ b/test/data/caffeine_service_test.dart @@ -8,7 +8,7 @@ void main() { late CaffeineService service; const methodChannel = MethodChannel('com.vodemn.lightmeter/keepScreenOn'); - Future? cameraMethodCallSuccessHandler(MethodCall methodCall) async { + Future? methodCallSuccessHandler(MethodCall methodCall) async { switch (methodCall.method) { case "isKeepScreenOn": return true; @@ -22,7 +22,7 @@ void main() { setUp(() { service = const CaffeineService(); TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger - .setMockMethodCallHandler(methodChannel, cameraMethodCallSuccessHandler); + .setMockMethodCallHandler(methodChannel, methodCallSuccessHandler); }); tearDown(() {