Skip to content

Commit

Permalink
fix: added some commas
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Oct 8, 2024
1 parent 5751554 commit 0290194
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions test/src/components/avatar/avatar_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,10 @@ void main() {
testWidgets('ZetaAvatar with background colour', (WidgetTester tester) async {
await tester.pumpWidget(
const TestApp(
home: ZetaAvatar(
backgroundColor: Colors.red,
)),
home: ZetaAvatar(
backgroundColor: Colors.red,
),
),
);

final avatarBackgroundColor =
Expand Down Expand Up @@ -302,8 +303,10 @@ void main() {
),
);

await expectLater(find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_default_${size.toString().split('.').last}')));
await expectLater(
find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_default_${size.toString().split('.').last}')),
);
});

testWidgets('ZetaAvatar with initials', (WidgetTester tester) async {
Expand All @@ -316,8 +319,10 @@ void main() {
),
);

await expectLater(find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_initials_${size.toString().split('.').last}')));
await expectLater(
find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_initials_${size.toString().split('.').last}')),
);
});

testWidgets('ZetaAvatar with image', (WidgetTester tester) async {
Expand All @@ -330,8 +335,10 @@ void main() {
),
);

await expectLater(find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_image_${size.toString().split('.').last}')));
await expectLater(
find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_image_${size.toString().split('.').last}')),
);
});

testWidgets('ZetaAvatar with fromName', (WidgetTester tester) async {
Expand All @@ -344,8 +351,10 @@ void main() {
),
);

await expectLater(find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_from_name_${size.toString().split('.').last}')));
await expectLater(
find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_from_name_${size.toString().split('.').last}')),
);
});

testWidgets('ZetaAvatar with upper badge', (WidgetTester tester) async {
Expand All @@ -358,8 +367,10 @@ void main() {
),
);

await expectLater(find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_upper_badge_${size.toString().split('.').last}')));
await expectLater(
find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_upper_badge_${size.toString().split('.').last}')),
);
});

testWidgets('ZetaAvatar with lower badge', (WidgetTester tester) async {
Expand All @@ -372,8 +383,10 @@ void main() {
),
);

await expectLater(find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_lower_badge_${size.toString().split('.').last}')));
await expectLater(
find.byType(ZetaAvatar),
matchesGoldenFile(goldenFile.getFileUri('avatar_lower_badge_${size.toString().split('.').last}')),
);
});
}
});
Expand Down

0 comments on commit 0290194

Please sign in to comment.