fix tests

This commit is contained in:
Salvatore Giordano
2021-06-10 12:33:20 +02:00
parent 33f19ebd5d
commit a6ff8e7039
8 changed files with 77 additions and 66 deletions
@@ -53,15 +53,6 @@ void main() {
)
]));
when(() => channelState.typingEvents).thenAnswer((i) => [
User(id: 'other-user', extraData: {'name': 'demo'})
]);
when(() => channelState.typingEventsStream)
.thenAnswer((i) => Stream.value([
User(id: 'other-user', extraData: {'name': 'demo'}),
User(id: 'other-user', extraData: {'name': 'demo'}),
]));
await tester.pumpWidget(MaterialApp(
home: StreamChat(
client: client,
@@ -75,7 +66,6 @@ void main() {
));
expect(find.byType(TextField), findsOneWidget);
expect(find.byType(StreamSvgIcon), findsNWidgets(8));
expect(find.byKey(const Key('messageInputText')), findsOneWidget);
},
);