feat: WebSocket temps réel + Finance Workflow + corrections
- Task #6: WebSocket /ws/dashboard + Kafka events (5 topics) * Backend: KafkaEventProducer, KafkaEventConsumer * Mobile: WebSocketService (reconnection, heartbeat, typed events) * DashboardBloc: Auto-refresh depuis WebSocket events - Finance Workflow: approbations + budgets (backend + mobile) * Backend: entities, services, resources, migrations Flyway V6 * Mobile: features finance_workflow complète avec BLoC - Corrections DI: interfaces IRepository partout * IProfileRepository, IOrganizationRepository, IMembreRepository * GetIt configuré avec @injectable - Spec-Kit: constitution + templates mis à jour * .specify/memory/constitution.md enrichie * Templates agent, plan, spec, tasks, checklist - Nettoyage: fichiers temporaires supprimés Signed-off-by: lions dev Team
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
/// Tests unitaires pour GetConversations use case
|
||||
library get_conversations_test;
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/usecases/get_conversations.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/repositories/messaging_repository.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/entities/conversation.dart';
|
||||
import 'package:unionflow_mobile_apps/core/error/failures.dart';
|
||||
|
||||
@GenerateMocks([MessagingRepository])
|
||||
import 'get_conversations_test.mocks.dart';
|
||||
|
||||
void main() {
|
||||
late GetConversations useCase;
|
||||
late MockMessagingRepository mockRepository;
|
||||
|
||||
setUp(() {
|
||||
mockRepository = MockMessagingRepository();
|
||||
useCase = GetConversations(mockRepository);
|
||||
});
|
||||
|
||||
group('GetConversations Use Case', () {
|
||||
final tConversations = [
|
||||
Conversation(
|
||||
id: 'conv-1',
|
||||
name: 'Discussion Projet Alpha',
|
||||
type: ConversationType.group,
|
||||
participantIds: ['user-1', 'user-2', 'user-3'],
|
||||
organizationId: 'org-123',
|
||||
unreadCount: 5,
|
||||
isPinned: true,
|
||||
createdAt: DateTime(2024, 12, 1),
|
||||
),
|
||||
Conversation(
|
||||
id: 'conv-2',
|
||||
name: 'Fatou Ndiaye',
|
||||
type: ConversationType.individual,
|
||||
participantIds: ['user-1', 'user-4'],
|
||||
unreadCount: 0,
|
||||
createdAt: DateTime(2024, 12, 10),
|
||||
),
|
||||
];
|
||||
|
||||
test('should return list of conversations successfully', () async {
|
||||
// Arrange
|
||||
when(mockRepository.getConversations(
|
||||
organizationId: anyNamed('organizationId'),
|
||||
includeArchived: anyNamed('includeArchived'),
|
||||
)).thenAnswer((_) async => Right(tConversations));
|
||||
|
||||
// Act
|
||||
final result = await useCase(organizationId: 'org-123');
|
||||
|
||||
// Assert
|
||||
expect(result, Right(tConversations));
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(conversations) {
|
||||
expect(conversations.length, equals(2));
|
||||
expect(conversations[0].name, equals('Discussion Projet Alpha'));
|
||||
expect(conversations[0].unreadCount, equals(5));
|
||||
expect(conversations[0].isPinned, isTrue);
|
||||
},
|
||||
);
|
||||
verify(mockRepository.getConversations(
|
||||
organizationId: 'org-123',
|
||||
includeArchived: false,
|
||||
));
|
||||
verifyNoMoreInteractions(mockRepository);
|
||||
});
|
||||
|
||||
test('should return conversations with archived included', () async {
|
||||
// Arrange
|
||||
final archivedConv = Conversation(
|
||||
id: 'conv-3',
|
||||
name: 'Ancienne Discussion',
|
||||
type: ConversationType.group,
|
||||
participantIds: ['user-1', 'user-2'],
|
||||
isArchived: true,
|
||||
createdAt: DateTime(2024, 11, 1),
|
||||
);
|
||||
when(mockRepository.getConversations(
|
||||
organizationId: anyNamed('organizationId'),
|
||||
includeArchived: true,
|
||||
)).thenAnswer((_) async => Right([...tConversations, archivedConv]));
|
||||
|
||||
// Act
|
||||
final result = await useCase(includeArchived: true);
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(conversations) {
|
||||
expect(conversations.length, equals(3));
|
||||
expect(conversations.any((c) => c.isArchived), isTrue);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
test('should return empty list when no conversations exist', () async {
|
||||
// Arrange
|
||||
when(mockRepository.getConversations(
|
||||
organizationId: anyNamed('organizationId'),
|
||||
includeArchived: anyNamed('includeArchived'),
|
||||
)).thenAnswer((_) async => Right([]));
|
||||
|
||||
// Act
|
||||
final result = await useCase();
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(conversations) => expect(conversations, isEmpty),
|
||||
);
|
||||
});
|
||||
|
||||
test('should return ServerFailure when repository fails', () async {
|
||||
// Arrange
|
||||
final tFailure = ServerFailure('Erreur serveur');
|
||||
when(mockRepository.getConversations(
|
||||
organizationId: anyNamed('organizationId'),
|
||||
includeArchived: anyNamed('includeArchived'),
|
||||
)).thenAnswer((_) async => Left(tFailure));
|
||||
|
||||
// Act
|
||||
final result = await useCase();
|
||||
|
||||
// Assert
|
||||
expect(result, Left(tFailure));
|
||||
result.fold(
|
||||
(failure) => expect(failure, isA<ServerFailure>()),
|
||||
(conversations) => fail('Should not return conversations'),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
/// Tests unitaires pour GetMessages use case
|
||||
library get_messages_test;
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/usecases/get_messages.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/repositories/messaging_repository.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/entities/message.dart';
|
||||
import 'package:unionflow_mobile_apps/core/error/failures.dart';
|
||||
|
||||
@GenerateMocks([MessagingRepository])
|
||||
import 'get_messages_test.mocks.dart';
|
||||
|
||||
void main() {
|
||||
late GetMessages useCase;
|
||||
late MockMessagingRepository mockRepository;
|
||||
|
||||
setUp(() {
|
||||
mockRepository = MockMessagingRepository();
|
||||
useCase = GetMessages(mockRepository);
|
||||
});
|
||||
|
||||
group('GetMessages Use Case', () {
|
||||
const tConversationId = 'conv-123';
|
||||
final tMessages = [
|
||||
Message(
|
||||
id: 'msg-1',
|
||||
conversationId: tConversationId,
|
||||
senderId: 'user-1',
|
||||
senderName: 'Amadou Diallo',
|
||||
content: 'Bonjour à tous!',
|
||||
type: MessageType.individual,
|
||||
status: MessageStatus.read,
|
||||
priority: MessagePriority.normal,
|
||||
recipientIds: ['user-2', 'user-3'],
|
||||
createdAt: DateTime(2024, 12, 15, 10, 0),
|
||||
),
|
||||
Message(
|
||||
id: 'msg-2',
|
||||
conversationId: tConversationId,
|
||||
senderId: 'user-2',
|
||||
senderName: 'Fatou Ndiaye',
|
||||
content: 'Salut Amadou!',
|
||||
type: MessageType.individual,
|
||||
status: MessageStatus.delivered,
|
||||
priority: MessagePriority.normal,
|
||||
recipientIds: ['user-1'],
|
||||
createdAt: DateTime(2024, 12, 15, 10, 5),
|
||||
),
|
||||
];
|
||||
|
||||
test('should return list of messages successfully', () async {
|
||||
// Arrange
|
||||
when(mockRepository.getMessages(
|
||||
conversationId: tConversationId,
|
||||
limit: anyNamed('limit'),
|
||||
beforeMessageId: anyNamed('beforeMessageId'),
|
||||
)).thenAnswer((_) async => Right(tMessages));
|
||||
|
||||
// Act
|
||||
final result = await useCase(conversationId: tConversationId);
|
||||
|
||||
// Assert
|
||||
expect(result, Right(tMessages));
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(messages) {
|
||||
expect(messages.length, equals(2));
|
||||
expect(messages[0].content, equals('Bonjour à tous!'));
|
||||
expect(messages[0].status, equals(MessageStatus.read));
|
||||
},
|
||||
);
|
||||
verify(mockRepository.getMessages(
|
||||
conversationId: tConversationId,
|
||||
limit: null,
|
||||
beforeMessageId: null,
|
||||
));
|
||||
verifyNoMoreInteractions(mockRepository);
|
||||
});
|
||||
|
||||
test('should return paginated messages with limit', () async {
|
||||
// Arrange
|
||||
when(mockRepository.getMessages(
|
||||
conversationId: tConversationId,
|
||||
limit: 1,
|
||||
beforeMessageId: anyNamed('beforeMessageId'),
|
||||
)).thenAnswer((_) async => Right([tMessages[0]]));
|
||||
|
||||
// Act
|
||||
final result = await useCase(conversationId: tConversationId, limit: 1);
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(messages) {
|
||||
expect(messages.length, equals(1));
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
test('should return empty list when no messages exist', () async {
|
||||
// Arrange
|
||||
when(mockRepository.getMessages(
|
||||
conversationId: anyNamed('conversationId'),
|
||||
limit: anyNamed('limit'),
|
||||
beforeMessageId: anyNamed('beforeMessageId'),
|
||||
)).thenAnswer((_) async => Right([]));
|
||||
|
||||
// Act
|
||||
final result = await useCase(conversationId: 'empty-conv');
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(messages) => expect(messages, isEmpty),
|
||||
);
|
||||
});
|
||||
|
||||
test('should return ServerFailure when repository fails', () async {
|
||||
// Arrange
|
||||
final tFailure = ServerFailure('Erreur serveur');
|
||||
when(mockRepository.getMessages(
|
||||
conversationId: anyNamed('conversationId'),
|
||||
limit: anyNamed('limit'),
|
||||
beforeMessageId: anyNamed('beforeMessageId'),
|
||||
)).thenAnswer((_) async => Left(tFailure));
|
||||
|
||||
// Act
|
||||
final result = await useCase(conversationId: tConversationId);
|
||||
|
||||
// Assert
|
||||
expect(result, Left(tFailure));
|
||||
result.fold(
|
||||
(failure) => expect(failure, isA<ServerFailure>()),
|
||||
(messages) => fail('Should not return messages'),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
/// Tests unitaires pour SendBroadcast use case
|
||||
library send_broadcast_test;
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/usecases/send_broadcast.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/repositories/messaging_repository.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/entities/message.dart';
|
||||
import 'package:unionflow_mobile_apps/core/error/failures.dart';
|
||||
|
||||
@GenerateMocks([MessagingRepository])
|
||||
import 'send_broadcast_test.mocks.dart';
|
||||
|
||||
void main() {
|
||||
late SendBroadcast useCase;
|
||||
late MockMessagingRepository mockRepository;
|
||||
|
||||
setUp(() {
|
||||
mockRepository = MockMessagingRepository();
|
||||
useCase = SendBroadcast(mockRepository);
|
||||
});
|
||||
|
||||
group('SendBroadcast Use Case', () {
|
||||
const tOrgId = 'org-123';
|
||||
const tSubject = 'Assemblée Générale 2024';
|
||||
const tContent = 'Chers membres, l\'AG aura lieu le 20 décembre...';
|
||||
final tBroadcastMessage = Message(
|
||||
id: 'broadcast-1',
|
||||
conversationId: 'broadcast-conv',
|
||||
senderId: 'admin-1',
|
||||
senderName: 'Admin Organisation',
|
||||
content: tContent,
|
||||
type: MessageType.broadcast,
|
||||
status: MessageStatus.sent,
|
||||
priority: MessagePriority.high,
|
||||
recipientIds: ['all'],
|
||||
organizationId: tOrgId,
|
||||
createdAt: DateTime.now(),
|
||||
metadata: {'subject': tSubject},
|
||||
);
|
||||
|
||||
test('should send broadcast message successfully', () async {
|
||||
// Arrange
|
||||
when(mockRepository.sendBroadcast(
|
||||
organizationId: tOrgId,
|
||||
subject: tSubject,
|
||||
content: tContent,
|
||||
priority: anyNamed('priority'),
|
||||
attachments: anyNamed('attachments'),
|
||||
)).thenAnswer((_) async => Right(tBroadcastMessage));
|
||||
|
||||
// Act
|
||||
final result = await useCase(
|
||||
organizationId: tOrgId,
|
||||
subject: tSubject,
|
||||
content: tContent,
|
||||
);
|
||||
|
||||
// Assert
|
||||
expect(result, Right(tBroadcastMessage));
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(message) {
|
||||
expect(message.type, equals(MessageType.broadcast));
|
||||
expect(message.content, equals(tContent));
|
||||
expect(message.metadata?['subject'], equals(tSubject));
|
||||
},
|
||||
);
|
||||
verify(mockRepository.sendBroadcast(
|
||||
organizationId: tOrgId,
|
||||
subject: tSubject,
|
||||
content: tContent,
|
||||
priority: MessagePriority.normal,
|
||||
attachments: null,
|
||||
));
|
||||
verifyNoMoreInteractions(mockRepository);
|
||||
});
|
||||
|
||||
test('should send urgent broadcast with attachments', () async {
|
||||
// Arrange
|
||||
final attachments = ['document.pdf', 'plan.jpg'];
|
||||
final urgentBroadcast = Message(
|
||||
id: 'broadcast-urgent',
|
||||
conversationId: 'broadcast-conv',
|
||||
senderId: 'admin-1',
|
||||
senderName: 'Admin Organisation',
|
||||
content: 'URGENT: Annulation événement',
|
||||
type: MessageType.broadcast,
|
||||
status: MessageStatus.sent,
|
||||
priority: MessagePriority.urgent,
|
||||
recipientIds: ['all'],
|
||||
organizationId: tOrgId,
|
||||
attachments: attachments,
|
||||
createdAt: DateTime.now(),
|
||||
);
|
||||
when(mockRepository.sendBroadcast(
|
||||
organizationId: tOrgId,
|
||||
subject: 'URGENT',
|
||||
content: 'URGENT: Annulation événement',
|
||||
priority: MessagePriority.urgent,
|
||||
attachments: attachments,
|
||||
)).thenAnswer((_) async => Right(urgentBroadcast));
|
||||
|
||||
// Act
|
||||
final result = await useCase(
|
||||
organizationId: tOrgId,
|
||||
subject: 'URGENT',
|
||||
content: 'URGENT: Annulation événement',
|
||||
priority: MessagePriority.urgent,
|
||||
attachments: attachments,
|
||||
);
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(message) {
|
||||
expect(message.priority, equals(MessagePriority.urgent));
|
||||
expect(message.attachments, equals(attachments));
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
test('should return ValidationFailure when subject or content is empty', () async {
|
||||
// Act
|
||||
final result = await useCase(
|
||||
organizationId: tOrgId,
|
||||
subject: '',
|
||||
content: 'Content',
|
||||
);
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) {
|
||||
expect(failure, isA<ValidationFailure>());
|
||||
},
|
||||
(message) => fail('Should not return message'),
|
||||
);
|
||||
verifyZeroInteractions(mockRepository);
|
||||
});
|
||||
|
||||
test('should return ServerFailure when repository fails', () async {
|
||||
// Arrange
|
||||
final tFailure = ServerFailure('Erreur d\'envoi broadcast');
|
||||
when(mockRepository.sendBroadcast(
|
||||
organizationId: anyNamed('organizationId'),
|
||||
subject: anyNamed('subject'),
|
||||
content: anyNamed('content'),
|
||||
priority: anyNamed('priority'),
|
||||
attachments: anyNamed('attachments'),
|
||||
)).thenAnswer((_) async => Left(tFailure));
|
||||
|
||||
// Act
|
||||
final result = await useCase(
|
||||
organizationId: tOrgId,
|
||||
subject: tSubject,
|
||||
content: tContent,
|
||||
);
|
||||
|
||||
// Assert
|
||||
expect(result, Left(tFailure));
|
||||
result.fold(
|
||||
(failure) => expect(failure, isA<ServerFailure>()),
|
||||
(message) => fail('Should not return message'),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
/// Tests unitaires pour SendMessage use case
|
||||
library send_message_test;
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/usecases/send_message.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/repositories/messaging_repository.dart';
|
||||
import 'package:unionflow_mobile_apps/features/communication/domain/entities/message.dart';
|
||||
import 'package:unionflow_mobile_apps/core/error/failures.dart';
|
||||
|
||||
@GenerateMocks([MessagingRepository])
|
||||
import 'send_message_test.mocks.dart';
|
||||
|
||||
void main() {
|
||||
late SendMessage useCase;
|
||||
late MockMessagingRepository mockRepository;
|
||||
|
||||
setUp(() {
|
||||
mockRepository = MockMessagingRepository();
|
||||
useCase = SendMessage(mockRepository);
|
||||
});
|
||||
|
||||
group('SendMessage Use Case', () {
|
||||
const tConversationId = 'conv-123';
|
||||
const tContent = 'Bonjour, comment allez-vous?';
|
||||
final tSentMessage = Message(
|
||||
id: 'msg-new',
|
||||
conversationId: tConversationId,
|
||||
senderId: 'user-1',
|
||||
senderName: 'Amadou Diallo',
|
||||
content: tContent,
|
||||
type: MessageType.individual,
|
||||
status: MessageStatus.sent,
|
||||
priority: MessagePriority.normal,
|
||||
recipientIds: ['user-2'],
|
||||
createdAt: DateTime.now(),
|
||||
);
|
||||
|
||||
test('should send message successfully', () async {
|
||||
// Arrange
|
||||
when(mockRepository.sendMessage(
|
||||
conversationId: tConversationId,
|
||||
content: tContent,
|
||||
attachments: anyNamed('attachments'),
|
||||
priority: anyNamed('priority'),
|
||||
)).thenAnswer((_) async => Right(tSentMessage));
|
||||
|
||||
// Act
|
||||
final result = await useCase(
|
||||
conversationId: tConversationId,
|
||||
content: tContent,
|
||||
);
|
||||
|
||||
// Assert
|
||||
expect(result, Right(tSentMessage));
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(message) {
|
||||
expect(message.id, equals('msg-new'));
|
||||
expect(message.content, equals(tContent));
|
||||
expect(message.status, equals(MessageStatus.sent));
|
||||
},
|
||||
);
|
||||
verify(mockRepository.sendMessage(
|
||||
conversationId: tConversationId,
|
||||
content: tContent,
|
||||
attachments: null,
|
||||
priority: MessagePriority.normal,
|
||||
));
|
||||
verifyNoMoreInteractions(mockRepository);
|
||||
});
|
||||
|
||||
test('should send urgent message with attachments', () async {
|
||||
// Arrange
|
||||
final attachments = ['file1.pdf', 'file2.jpg'];
|
||||
final urgentMessage = Message(
|
||||
id: 'msg-urgent',
|
||||
conversationId: tConversationId,
|
||||
senderId: 'user-1',
|
||||
senderName: 'Amadou Diallo',
|
||||
content: 'URGENT: Document important',
|
||||
type: MessageType.individual,
|
||||
status: MessageStatus.sent,
|
||||
priority: MessagePriority.urgent,
|
||||
recipientIds: ['user-2'],
|
||||
attachments: attachments,
|
||||
createdAt: DateTime.now(),
|
||||
);
|
||||
when(mockRepository.sendMessage(
|
||||
conversationId: tConversationId,
|
||||
content: 'URGENT: Document important',
|
||||
attachments: attachments,
|
||||
priority: MessagePriority.urgent,
|
||||
)).thenAnswer((_) async => Right(urgentMessage));
|
||||
|
||||
// Act
|
||||
final result = await useCase(
|
||||
conversationId: tConversationId,
|
||||
content: 'URGENT: Document important',
|
||||
attachments: attachments,
|
||||
priority: MessagePriority.urgent,
|
||||
);
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) => fail('Should not return failure'),
|
||||
(message) {
|
||||
expect(message.priority, equals(MessagePriority.urgent));
|
||||
expect(message.attachments, equals(attachments));
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
test('should return ValidationFailure when content is empty', () async {
|
||||
// Act
|
||||
final result = await useCase(
|
||||
conversationId: tConversationId,
|
||||
content: ' ',
|
||||
);
|
||||
|
||||
// Assert
|
||||
result.fold(
|
||||
(failure) {
|
||||
expect(failure, isA<ValidationFailure>());
|
||||
expect((failure as ValidationFailure).message, contains('ne peut pas être vide'));
|
||||
},
|
||||
(message) => fail('Should not return message'),
|
||||
);
|
||||
verifyZeroInteractions(mockRepository);
|
||||
});
|
||||
|
||||
test('should return ServerFailure when repository fails', () async {
|
||||
// Arrange
|
||||
final tFailure = ServerFailure('Erreur d\'envoi');
|
||||
when(mockRepository.sendMessage(
|
||||
conversationId: anyNamed('conversationId'),
|
||||
content: anyNamed('content'),
|
||||
attachments: anyNamed('attachments'),
|
||||
priority: anyNamed('priority'),
|
||||
)).thenAnswer((_) async => Left(tFailure));
|
||||
|
||||
// Act
|
||||
final result = await useCase(
|
||||
conversationId: tConversationId,
|
||||
content: tContent,
|
||||
);
|
||||
|
||||
// Assert
|
||||
expect(result, Left(tFailure));
|
||||
result.fold(
|
||||
(failure) => expect(failure, isA<ServerFailure>()),
|
||||
(message) => fail('Should not return message'),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user