Conclude labs flags and write more tests

This commit is contained in:
Michael Telatynski 2021-07-27 14:39:14 +01:00
parent 80bf7d1675
commit 755007cbee
5 changed files with 112 additions and 43 deletions

View file

@ -23,7 +23,7 @@ import { NOTIFICATION_STATE_UPDATE, NotificationState } from "./NotificationStat
import { FetchRoomFn } from "./ListNotificationState";
export class SpaceNotificationState extends NotificationState {
private rooms: Room[] = [];
public rooms: Room[] = []; // exposed only for tests
private states: { [spaceId: string]: RoomNotificationState } = {};
constructor(private spaceId: string | symbol, private getRoomFn: FetchRoomFn) {