mirror of
https://github.com/immich-app/immich.git
synced 2024-12-23 02:06:15 +02:00
17 lines
562 B
Dart
17 lines
562 B
Dart
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||
|
import 'package:immich_mobile/shared/models/user.dart';
|
||
|
import 'package:immich_mobile/shared/providers/user.provider.dart';
|
||
|
import 'package:immich_mobile/shared/services/hash.service.dart';
|
||
|
import 'package:mocktail/mocktail.dart';
|
||
|
|
||
|
class MockHashService extends Mock implements HashService {}
|
||
|
|
||
|
class MockCurrentUserProvider extends StateNotifier<User?>
|
||
|
with Mock
|
||
|
implements CurrentUserProvider {
|
||
|
MockCurrentUserProvider() : super(null);
|
||
|
|
||
|
@override
|
||
|
set state(User? user) => super.state = user;
|
||
|
}
|