Skip to content

Commit 4e11ea7

Browse files
chrisbobbegnprice
authored andcommitted
test: Add addStream / addStreams to PerAccountStoreTestExtension
1 parent f0a6936 commit 4e11ea7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/model/test_store.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,12 @@ extension PerAccountStoreTestExtension on PerAccountStore {
6868
addUser(user);
6969
}
7070
}
71+
72+
void addStream(ZulipStream stream) {
73+
addStreams([stream]);
74+
}
75+
76+
void addStreams(List<ZulipStream> streams) {
77+
handleEvent(StreamCreateEvent(id: 1, streams: streams));
78+
}
7179
}

0 commit comments

Comments
 (0)