From c31411c4a2b5acf0ae6c169e39552260e9eeb7c0 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Wed, 19 Nov 2025 04:48:35 +0300 Subject: [PATCH] fix: analyzer --- test/features/auth/presentation/bloc/auth_cubit_test.dart | 2 +- .../features/auth/presentation/widgets/basic_widget_test.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/features/auth/presentation/bloc/auth_cubit_test.dart b/test/features/auth/presentation/bloc/auth_cubit_test.dart index 5cfe36df..ec2c1268 100644 --- a/test/features/auth/presentation/bloc/auth_cubit_test.dart +++ b/test/features/auth/presentation/bloc/auth_cubit_test.dart @@ -99,7 +99,7 @@ void main() { test('getTokenByCredentials - обработка различных типов ошибок', () async { authCubit = AuthCubit(authRepository: mockAuthRepository); when(mockAuthRepository.getTokenByCredentials(any, any)) - .thenThrow(FormatException('Invalid credentials format')); + .thenThrow(const FormatException('Invalid credentials format')); final result = await authCubit!.getTokenByCredentials('invalid', 'pass'); diff --git a/test/features/auth/presentation/widgets/basic_widget_test.dart b/test/features/auth/presentation/widgets/basic_widget_test.dart index fb6c5159..f296679d 100644 --- a/test/features/auth/presentation/widgets/basic_widget_test.dart +++ b/test/features/auth/presentation/widgets/basic_widget_test.dart @@ -351,10 +351,10 @@ void main() { testWidgets('should disable sign in button when loading', (WidgetTester tester) async { // Arrange - Widget buttonWidget = FloatingActionButton.extended( + Widget buttonWidget = const FloatingActionButton.extended( key: AppKeys.signInButtonAuthScreen, onPressed: null, // Disabled - label: const Text('Войти'), + label: Text('Войти'), ); // Act