From 2506ab805cb9b482dd0cbb80904e99403f654350 Mon Sep 17 00:00:00 2001 From: Talha Date: Tue, 21 May 2024 22:08:57 +0500 Subject: [PATCH] test fixes --- test/acter_avatar_test.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/acter_avatar_test.dart b/test/acter_avatar_test.dart index 6fd4bf3..9006677 100644 --- a/test/acter_avatar_test.dart +++ b/test/acter_avatar_test.dart @@ -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 { @@ -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)); });