1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-06 11:56:46 +01:00
immich/mobile/test/modules/shared/shared_mocks.dart

14 lines
429 B
Dart
Raw Normal View History

import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/entities/user.entity.dart';
import 'package:immich_mobile/providers/user.provider.dart';
import 'package:mocktail/mocktail.dart';
class MockCurrentUserProvider extends StateNotifier<User?>
with Mock
implements CurrentUserProvider {
MockCurrentUserProvider() : super(null);
@override
set state(User? user) => super.state = user;
}