diff --git a/lib/services/downloaded_embedded_cover_resolver.dart b/lib/services/downloaded_embedded_cover_resolver.dart index 3bea4388..50671563 100644 --- a/lib/services/downloaded_embedded_cover_resolver.dart +++ b/lib/services/downloaded_embedded_cover_resolver.dart @@ -87,7 +87,8 @@ class DownloadedEmbeddedCoverResolver { static bool _drainScheduled = false; static final Map _cacheGeneration = {}; static final Set _pendingRefresh = {}; - static final _pendingPreviewValidation = {}; + static final _pendingPreviewValidation = + {}; static Future? _previewValidationFuture; static const _previewValidationInterval = Duration(seconds: 5); static const _previewValidationBatchSize = 8; diff --git a/test/batch_album_artist_normalization_test.dart b/test/batch_album_artist_normalization_test.dart index f33a7de8..55e2e695 100644 --- a/test/batch_album_artist_normalization_test.dart +++ b/test/batch_album_artist_normalization_test.dart @@ -47,14 +47,11 @@ void main() { normalized.map((track) => track.albumArtist), everyElement('Falling In Reverse'), ); - expect( - normalized.map((track) => track.artistName), - [ - 'Falling In Reverse', - 'Falling In Reverse, Jelly Roll', - 'Falling In Reverse, Marilyn Manson', - ], - ); + expect(normalized.map((track) => track.artistName), [ + 'Falling In Reverse', + 'Falling In Reverse, Jelly Roll', + 'Falling In Reverse, Marilyn Manson', + ]); }); test('preserves a stable joint album credit', () { diff --git a/test/models_and_utils_test.dart b/test/models_and_utils_test.dart index 840dae36..b35bee92 100644 --- a/test/models_and_utils_test.dart +++ b/test/models_and_utils_test.dart @@ -296,26 +296,32 @@ void main() { ); }); - test('waits on one progress delta stream and preserves concurrent items', () { - expect( - RegExp( - r'Gobackend\.waitForAllDownloadProgressDelta\(', - ).allMatches(workerSnapshotSource), - hasLength(1), - ); - expect( - workerSnapshotSource, - isNot(contains('Gobackend.getAllDownloadProgress()')), - ); - expect(workerSnapshotSource, contains('"item_deltas"')); - expect( - workerSnapshotSource, - contains('progressItemIds = orderedItemIds'), - ); - expect(workerSnapshotSource, contains('progressCoordinatorEpoch')); - expect(workerSnapshotSource, contains('nativeWorkerProgressEpoch.get()')); - expect(nativeWorkerProviderSource, contains("snapshot['item_deltas']")); - }); + test( + 'waits on one progress delta stream and preserves concurrent items', + () { + expect( + RegExp( + r'Gobackend\.waitForAllDownloadProgressDelta\(', + ).allMatches(workerSnapshotSource), + hasLength(1), + ); + expect( + workerSnapshotSource, + isNot(contains('Gobackend.getAllDownloadProgress()')), + ); + expect(workerSnapshotSource, contains('"item_deltas"')); + expect( + workerSnapshotSource, + contains('progressItemIds = orderedItemIds'), + ); + expect(workerSnapshotSource, contains('progressCoordinatorEpoch')); + expect( + workerSnapshotSource, + contains('nativeWorkerProgressEpoch.get()'), + ); + expect(nativeWorkerProviderSource, contains("snapshot['item_deltas']")); + }, + ); Set historyTableColumns(String source) { final match = RegExp(