Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit bdbb505

Browse files
committed
Fix test again
1 parent 9edd670 commit bdbb505

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/stores/ReleaseAnnouncementStore-test.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,18 @@ describe("ReleaseAnnouncementStore", () => {
9999
// Sanity check
100100
expect(releaseAnnouncementStore.getReleaseAnnouncement()).toBe("threadsActivityCentre");
101101

102-
const promise = listenReleaseAnnouncementChanged();
102+
let promise = listenReleaseAnnouncementChanged();
103103
await releaseAnnouncementStore.nextReleaseAnnouncement();
104104

105105
expect(await promise).toBe("newRoomHeader");
106106
expect(releaseAnnouncementStore.getReleaseAnnouncement()).toBe("newRoomHeader");
107107

108+
promise = listenReleaseAnnouncementChanged();
109+
await releaseAnnouncementStore.nextReleaseAnnouncement();
110+
expect(await promise).toBeNull();
111+
108112
const secondStore = new ReleaseAnnouncementStore();
109-
// The TAC release announcement has been viewed, so it should be updated in the store account
113+
// All the release announcements have been viewed, so it should be updated in the store account
110114
// The release announcement viewing states should be share among all instances (devices in the same account)
111115
expect(secondStore.getReleaseAnnouncement()).toBeNull();
112116
});

0 commit comments

Comments
 (0)