You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-04 23:02:14 +03:00
Fix breadcrumb store test (#10330)
This commit is contained in:
@@ -16,7 +16,6 @@ limitations under the License.
|
|||||||
|
|
||||||
import { mocked } from "jest-mock";
|
import { mocked } from "jest-mock";
|
||||||
import { MatrixClient, Room } from "matrix-js-sdk/src/matrix";
|
import { MatrixClient, Room } from "matrix-js-sdk/src/matrix";
|
||||||
import { act } from "react-dom/test-utils";
|
|
||||||
|
|
||||||
import { createTestClient, flushPromises, setupAsyncStoreWithClient } from "../test-utils";
|
import { createTestClient, flushPromises, setupAsyncStoreWithClient } from "../test-utils";
|
||||||
import SettingsStore from "../../src/settings/SettingsStore";
|
import SettingsStore from "../../src/settings/SettingsStore";
|
||||||
@@ -185,9 +184,7 @@ describe("BreadcrumbsStore", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Wait for event dispatch to happen
|
// Wait for event dispatch to happen
|
||||||
await act(async () => {
|
await flushPromises();
|
||||||
await flushPromises();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user