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

Commit 9edd670

Browse files
committed
Fix broken test
1 parent cc27d78 commit 9edd670

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/stores/ReleaseAnnouncementStore-test.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ describe("ReleaseAnnouncementStore", () => {
101101

102102
const promise = listenReleaseAnnouncementChanged();
103103
await releaseAnnouncementStore.nextReleaseAnnouncement();
104-
// Currently there is only one feature, so the next feature should be null
105-
expect(await promise).toBeNull();
106-
expect(releaseAnnouncementStore.getReleaseAnnouncement()).toBeNull();
104+
105+
expect(await promise).toBe("newRoomHeader");
106+
expect(releaseAnnouncementStore.getReleaseAnnouncement()).toBe("newRoomHeader");
107107

108108
const secondStore = new ReleaseAnnouncementStore();
109109
// The TAC release announcement has been viewed, so it should be updated in the store account
@@ -118,8 +118,7 @@ describe("ReleaseAnnouncementStore", () => {
118118
const promise = listenReleaseAnnouncementChanged();
119119
await secondStore.nextReleaseAnnouncement();
120120

121-
// Currently there is only one feature, so the next feature should be null
122-
expect(await promise).toBeNull();
123-
expect(releaseAnnouncementStore.getReleaseAnnouncement()).toBeNull();
121+
expect(await promise).toBe("newRoomHeader");
122+
expect(releaseAnnouncementStore.getReleaseAnnouncement()).toBe("newRoomHeader");
124123
});
125124
});

0 commit comments

Comments
 (0)