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(() {