Update tests to use SettingsStore where possible.
This commit is contained in:
@@ -486,7 +486,7 @@ describe("<MatrixChat />", () => {
|
||||
|
||||
afterEach(() => {
|
||||
SettingsStore.reset();
|
||||
})
|
||||
});
|
||||
|
||||
it("should persist login credentials", async () => {
|
||||
getComponent({ realQueryParams });
|
||||
|
||||
@@ -313,8 +313,7 @@ describe("TimelinePanel", () => {
|
||||
describe("and sending receipts is disabled", () => {
|
||||
beforeEach(async () => {
|
||||
// Ensure this setting is supported, otherwise it will use the default value.
|
||||
client.isVersionSupported.mockResolvedValue(true);
|
||||
client.doesServerSupportUnstableFeature.mockResolvedValue(true);
|
||||
client.isVersionSupported.mockImplementation(async (v) => v === "v1.4");
|
||||
MatrixClientBackedController.matrixClient = client;
|
||||
SettingsStore.setValue("sendReadReceipts", null, SettingLevel.DEVICE, false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user