Skip to content

Commit 66ced6c

Browse files
committed
dcm fix --only-rules=prefer-trailing-comma lib test test_data integration_test
1 parent a589d87 commit 66ced6c

18 files changed

+289
-242
lines changed

integration_test/1_dashboard.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Widget createDashboardScreen({locale = 'en'}) {
3434
'date': '2022-12-01',
3535
'impression': '3',
3636
'time_start': '17:00',
37-
'time_end': '19:00'
38-
}
39-
]
37+
'time_end': '19:00',
38+
},
39+
],
4040
};
4141
when(mockWorkoutProvider.fetchSessionData()).thenAnswer((a) => Future.value(logs));
4242

integration_test/6_weight.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ Widget createWeightScreen({locale = 'en'}) {
3636
supportedLocales: AppLocalizations.supportedLocales,
3737
theme: wgerLightTheme,
3838
home: const WeightScreen(),
39-
routes: {
40-
FormScreen.routeName: (ctx) => const FormScreen(),
41-
},
39+
routes: {FormScreen.routeName: (ctx) => const FormScreen()},
4240
),
4341
);
4442
}

integration_test/make_screenshots_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const languages = [
5757
'ru-RU',
5858
'tr-TR',
5959
'uk',
60-
'zh-CN'
60+
'zh-CN',
6161
];
6262

6363
void main() {

test/core/settings_test.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ void main() {
3535
return ChangeNotifierProvider<ExercisesProvider>(
3636
create: (context) => mockExerciseProvider,
3737
child: MaterialApp(
38-
locale: Locale(locale),
39-
localizationsDelegates: AppLocalizations.localizationsDelegates,
40-
supportedLocales: AppLocalizations.supportedLocales,
41-
home: const SettingsPage()),
38+
locale: Locale(locale),
39+
localizationsDelegates: AppLocalizations.localizationsDelegates,
40+
supportedLocales: AppLocalizations.supportedLocales,
41+
home: const SettingsPage(),
42+
),
4243
);
4344
}
4445

test/exercises/exercise_provider_load_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void main() {
114114
'1f5d2b2f-d4ea-4eeb-9377-56176465e08d',
115115
'ab645585-26ef-4992-a9ec-15425687ece9',
116116
'd8aa5990-bb47-4111-9823-e2fbd98fe07f',
117-
'49a159e1-1e00-409a-81c9-b4d4489fbd67'
117+
'49a159e1-1e00-409a-81c9-b4d4489fbd67',
118118
]);
119119
expect(exercise.videos.map((v) => v.uuid), ['63e996e9-a772-4ca5-9d09-8b4be03f6be4']);
120120

test/exercises/model_exercise_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void main() {
5757
'1f5d2b2f-d4ea-4eeb-9377-56176465e08d',
5858
'ab645585-26ef-4992-a9ec-15425687ece9',
5959
'd8aa5990-bb47-4111-9823-e2fbd98fe07f',
60-
'49a159e1-1e00-409a-81c9-b4d4489fbd67'
60+
'49a159e1-1e00-409a-81c9-b4d4489fbd67',
6161
]);
6262
expect(exercise.videos.map((v) => v.uuid), ['63e996e9-a772-4ca5-9d09-8b4be03f6be4']);
6363

test/gallery/gallery_provider_test.dart

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ void main() {
3434
Uri.https('localhost', 'api/v2/gallery/'),
3535
headers: anyNamed('headers'),
3636
)).thenAnswer((_) async => http.Response(
37-
'{"count":1,"next":null,"previous":null,"results":['
38-
'{"id":58,'
39-
'"date":"2022-01-09",'
40-
'"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
41-
'"description":"eggsaddjujuit\'ddayhadIforcanview",'
42-
'"height":1280,"width":960}]}',
43-
200));
37+
'{"count":1,"next":null,"previous":null,"results":['
38+
'{"id":58,'
39+
'"date":"2022-01-09",'
40+
'"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
41+
'"description":"eggsaddjujuit\'ddayhadIforcanview",'
42+
'"height":1280,"width":960}]}',
43+
200,
44+
));
4445

4546
final galleryProvider = GalleryProvider(testAuthProvider, [], client);
4647

@@ -57,20 +58,22 @@ void main() {
5758
Uri.https('localhost', 'api/v2/gallery/58/'),
5859
headers: anyNamed('headers'),
5960
)).thenAnswer((_) async => http.Response(
60-
'{"id":58,'
61-
'"date":"2022-01-09",'
62-
'"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
63-
'"description":"eggsaddjujuit\'ddayhadIforcanview",'
64-
'"height":1280,"width":960}',
65-
200));
61+
'{"id":58,'
62+
'"date":"2022-01-09",'
63+
'"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
64+
'"description":"eggsaddjujuit\'ddayhadIforcanview",'
65+
'"height":1280,"width":960}',
66+
200,
67+
));
6668

6769
final galleryProvider = GalleryProvider(testAuthProvider, [], client);
6870

6971
final image = gallery.Image(
70-
id: 58,
71-
date: DateTime(2022, 01, 09),
72-
url: 'https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg',
73-
description: "eggsaddjujuit'ddayhadIforcanview");
72+
id: 58,
73+
date: DateTime(2022, 01, 09),
74+
url: 'https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg',
75+
description: "eggsaddjujuit'ddayhadIforcanview",
76+
);
7477

7578
galleryProvider.images.add(image);
7679

test/measurements/measurement_category_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void main() {
1111
date: DateTime(2021, 7, 22),
1212
value: 83,
1313
notes: 'notes',
14-
)
14+
),
1515
];
1616

1717
final MeasurementEntry tMeasurementEntry = MeasurementEntry(
@@ -35,7 +35,7 @@ void main() {
3535
'category': 123,
3636
'date': '2021-07-22',
3737
'value': 83,
38-
'notes': 'notes'
38+
'notes': 'notes',
3939
};
4040

4141
final Map<String, dynamic> tMeasurementCategoryMap = {

test/measurements/measurement_entry_test.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ void main() {
4747

4848
// act
4949
final result = tMeasurementEntry.copyWith(
50-
id: 83, category: 17, date: DateTime(1960), value: 93, notes: 'Interesting');
50+
id: 83,
51+
category: 17,
52+
date: DateTime(1960),
53+
value: 93,
54+
notes: 'Interesting',
55+
);
5156

5257
// assert
5358
expect(result, tMeasurementEntryCopied);

0 commit comments

Comments
 (0)