fix: analyzer

This commit is contained in:
mso7nueh
2025-11-19 04:48:35 +03:00
parent 6214d19a14
commit c31411c4a2
2 changed files with 3 additions and 3 deletions

View File

@@ -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');

View File

@@ -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