mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
refactor(mobile): use shorthand notation for AssetOriginFilter in timeline repo tests
This commit is contained in:
parent
5df20b12ad
commit
11d5988af4
1 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:immich_mobile/domain/models/asset/base_asset.model.dart';
|
||||
import 'package:immich_mobile/domain/models/timeline.model.dart';
|
||||
import 'package:immich_mobile/infrastructure/repositories/timeline.repository.dart';
|
||||
import 'package:intl/date_symbol_data_local.dart';
|
||||
|
||||
|
|
@ -77,7 +76,7 @@ void main() {
|
|||
final user = await ctx.newUser();
|
||||
final asset = await ctx.newRemoteAsset(ownerId: user.id, livePhotoVideoId: 'motion-photo-1');
|
||||
|
||||
final assets = await sut.main([user.id], .day, AssetOriginFilter.all).assetSource(0, 10);
|
||||
final assets = await sut.main([user.id], .day, .all).assetSource(0, 10);
|
||||
|
||||
expect(assets, hasLength(1));
|
||||
final remote = assets.single as RemoteAsset;
|
||||
|
|
@ -93,7 +92,7 @@ void main() {
|
|||
final asset = await ctx.newRemoteAsset(ownerId: user.id, checksum: checksum, livePhotoVideoId: 'motion-photo-2');
|
||||
final local = await ctx.newLocalAsset(checksum: checksum);
|
||||
|
||||
final assets = await sut.main([user.id], .day, AssetOriginFilter.all).assetSource(0, 10);
|
||||
final assets = await sut.main([user.id], .day, .all).assetSource(0, 10);
|
||||
|
||||
expect(assets, hasLength(1));
|
||||
final remote = assets.single as RemoteAsset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue