Skip to content

Commit ac17901

Browse files
committed
test: Add addStream / addStreams to PerAccountStoreTestExtension
1 parent fcefb82 commit ac17901

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)