Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalha07 committed May 21, 2024
1 parent 07e1bf4 commit 2506ab8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/acter_avatar_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ void main() {
final innerAvatar = tester.getSize(find.descendant(
of: avatarFinder, matching: find.byType(ActerAvatar)));
// expect parent badge fallback size.
expect(innerAvatar.height, equals(20));
expect(innerAvatar.width, equals(20));
expect(innerAvatar.height, equals(18));
expect(innerAvatar.width, equals(18));
});
testWidgets('Space Avatar Parent badge with NetworkImage render',
(WidgetTester tester) async {
Expand Down Expand Up @@ -299,7 +299,7 @@ void main() {
expect(avatarFinder, findsOneWidget);
final avatar = avatarFinder.evaluate().first.widget as ActerAvatar;
// should expect Asset Image in case of image render.
expect(avatar..options.avatar.avatar, NetworkImage(imagePath));
expect(avatar.options.avatar.avatar, NetworkImage(imagePath));
expect((avatar.options as AvatarOptionsGroupDM).groupAvatars?[0].avatar,
NetworkImage(image2Path));
});
Expand Down

0 comments on commit 2506ab8

Please sign in to comment.