Skip to content

Commit

Permalink
correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalha07 committed Nov 14, 2023
1 parent e8d5669 commit b97e5ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/acter_avatar_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ void main() {

// should expect specified fallback size
// diameter (size) is twice of radius size so we would expect x2 of specified size
expect(avatarSize.height, equals(36 * 2));
expect(avatarSize.width, equals(36 * 2));
expect(avatarSize.height, equals(36));
expect(avatarSize.width, equals(36));
});
testWidgets('User Circle Avatar with fallback size',
(WidgetTester tester) async {
Expand Down Expand Up @@ -95,8 +95,8 @@ void main() {

// should expect specified fallback size
// diameter (size) is twice of radius size so we would expect x2 of specified size
expect(avatarSize.height, equals(36 * 2));
expect(avatarSize.width, equals(36 * 2));
expect(avatarSize.height, equals(36));
expect(avatarSize.width, equals(36));
});
testWidgets('Rectangular Avatar with fallback size',
(WidgetTester tester) async {
Expand Down Expand Up @@ -228,15 +228,15 @@ void main() {

// should expect first avatar specified size
// diameter (size) is twice of radius size so we would expect x2 of specified size
expect(avatarSize.height, equals(24 * 2));
expect(avatarSize.width, equals(24 * 2));
expect(avatarSize.height, equals(24));
expect(avatarSize.width, equals(24));

final secondAvatarSize = tester.getSize(find.byType(Positioned));

// should expect second avatar specified size
// diameter (size) is twice of radius size so we would expect x2 of specified size
expect(secondAvatarSize.height, equals(24 * 2));
expect(secondAvatarSize.width, equals(24 * 2));
expect(secondAvatarSize.height, equals(24));
expect(secondAvatarSize.width, equals(24));
});
testWidgets('Circular Stacked Avatars with fallback size',
(WidgetTester tester) async {
Expand Down

0 comments on commit b97e5ce

Please sign in to comment.