From 31db9a73b115c028230df9a0d8c783702a77cabc Mon Sep 17 00:00:00 2001 From: rohansen856 Date: Thu, 28 Nov 2024 21:06:45 +0530 Subject: [PATCH] unused variables removed for passing flutter analyze --- test/api_service_test.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/api_service_test.dart b/test/api_service_test.dart index 5fd19ca..cb2d0b2 100644 --- a/test/api_service_test.dart +++ b/test/api_service_test.dart @@ -17,17 +17,13 @@ class MockMethodChannel extends Mock implements MethodChannel {} void main() { TestWidgetsFlutterBinding.ensureInitialized(); - // unused variable. used to mock the initiation of HTTPClient - late MockHttpClient mockHttpClient; databaseFactory = databaseFactoryFfi; setUpAll(() { sqfliteFfiInit(); }); - setUp(() { - mockHttpClient = MockHttpClient(); - }); + setUp(() {}); group('Tasks model', () { test('fromJson creates Tasks object', () {