mirror of
https://github.com/immich-app/immich.git
synced 2024-12-02 09:52:47 +02:00
c1253663b7
* refactor(mobile): services and provider * providers
17 lines
550 B
Dart
17 lines
550 B
Dart
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:immich_mobile/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;
|
|
}
|