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

Commit 28abae6

Browse files
authored
Fix breadcrumb store test (#10330)
1 parent 2b39eac commit 28abae6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/stores/BreadcrumbsStore-test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ limitations under the License.
1616

1717
import { mocked } from "jest-mock";
1818
import { MatrixClient, Room } from "matrix-js-sdk/src/matrix";
19-
import { act } from "react-dom/test-utils";
2019

2120
import { createTestClient, flushPromises, setupAsyncStoreWithClient } from "../test-utils";
2221
import SettingsStore from "../../src/settings/SettingsStore";
@@ -185,9 +184,7 @@ describe("BreadcrumbsStore", () => {
185184
);
186185

187186
// Wait for event dispatch to happen
188-
await act(async () => {
189-
await flushPromises();
190-
});
187+
await flushPromises();
191188
}
192189

193190
/**

0 commit comments

Comments
 (0)