1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

refactor: logger service and remove dynamic (#17733)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-06-09 08:31:31 +05:30
committed by GitHub
parent 7b2237b86b
commit 2d05a5482f
13 changed files with 119 additions and 140 deletions

View File

@ -1,5 +1,3 @@
// ignore_for_file: avoid-dynamic
import 'package:flutter_test/flutter_test.dart';
import 'package:immich_mobile/domain/interfaces/store.interface.dart';
import 'package:immich_mobile/domain/models/store.model.dart';
@ -146,32 +144,21 @@ void main() {
expectLater(
stream,
emitsInAnyOrder([
emits(const StoreDto<Object>(StoreKey.version, _kTestVersion)),
emits(
const StoreUpdateEvent<dynamic>(StoreKey.version, _kTestVersion),
StoreDto<Object>(StoreKey.backupFailedSince, _kTestBackupFailed),
),
emits(
StoreUpdateEvent<dynamic>(
StoreKey.backupFailedSince,
_kTestBackupFailed,
),
const StoreDto<Object>(StoreKey.accessToken, _kTestAccessToken),
),
emits(
const StoreUpdateEvent<dynamic>(
StoreKey.accessToken,
_kTestAccessToken,
),
),
emits(
const StoreUpdateEvent<dynamic>(
const StoreDto<Object>(
StoreKey.colorfulInterface,
_kTestColorfulInterface,
),
),
emits(
const StoreUpdateEvent<dynamic>(
StoreKey.version,
_kTestVersion + 10,
),
const StoreDto<Object>(StoreKey.version, _kTestVersion + 10),
),
]),
);