test(logging): optimize logging tests and fix broken tests
This commit is contained in:
@@ -13,12 +13,16 @@ import 'package:social_app/features/messages/data/repositories/inbox_repository.
|
||||
|
||||
class _FakeApiClient implements IApiClient {
|
||||
@override
|
||||
Future<Response<T>> delete<T>(String path, {data, Options? options}) {
|
||||
Future<Response<T>> delete<T>(String path, {dynamic data, Options? options}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Response<T>> get<T>(String path, {Options? options}) {
|
||||
Future<Response<T>> get<T>(
|
||||
String path, {
|
||||
Map<String, String>? queryParameters,
|
||||
Options? options,
|
||||
}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@@ -31,17 +35,17 @@ class _FakeApiClient implements IApiClient {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Response<T>> patch<T>(String path, {data, Options? options}) {
|
||||
Future<Response<T>> patch<T>(String path, {dynamic data, Options? options}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Response<T>> post<T>(String path, {data, Options? options}) {
|
||||
Future<Response<T>> post<T>(String path, {dynamic data, Options? options}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Response<T>> put<T>(String path, {data, Options? options}) {
|
||||
Future<Response<T>> put<T>(String path, {dynamic data, Options? options}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
@@ -127,6 +131,7 @@ void main() {
|
||||
prewarmChatHistory: () async {},
|
||||
prewarmCalendarToday: () async {},
|
||||
prewarmUnreadInbox: () async {},
|
||||
prewarmCalendarReminderWindow: () async {},
|
||||
);
|
||||
|
||||
await orchestrator.ensureStartedFor('u1');
|
||||
@@ -145,6 +150,7 @@ void main() {
|
||||
prewarmChatHistory: () => completer.future,
|
||||
prewarmCalendarToday: () => completer.future,
|
||||
prewarmUnreadInbox: () => completer.future,
|
||||
prewarmCalendarReminderWindow: () => completer.future,
|
||||
);
|
||||
|
||||
await orchestrator.ensureStartedFor('u1');
|
||||
|
||||
Reference in New Issue
Block a user