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

Commit c619db2

Browse files
committed
Fix ts strict
1 parent a0e9b65 commit c619db2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/stores/TypingStore-test.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import { mocked } from "jest-mock";
1817
import { MatrixClient } from "matrix-js-sdk/src/matrix";
1918

2019
import TypingStore from "../../src/stores/TypingStore";
@@ -31,10 +30,6 @@ jest.mock("../../src/settings/SettingsStore", () => ({
3130
describe("TypingStore", () => {
3231
let typingStore: TypingStore;
3332
let mockClient: MatrixClient;
34-
const settings = {
35-
sendTypingNotifications: true,
36-
feature_threadstable: false,
37-
};
3833
const roomId = "!test:example.com";
3934
const localRoomId = LOCAL_ROOM_ID_PREFIX + "test";
4035

@@ -45,8 +40,8 @@ describe("TypingStore", () => {
4540
const context = new TestSdkContext();
4641
context.client = mockClient;
4742
typingStore = new TypingStore(context);
48-
mocked(SettingsStore.getValue).mockImplementation((setting: string) => {
49-
return settings[setting];
43+
jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => {
44+
return name === "sendTypingNotifications";
5045
});
5146
});
5247

0 commit comments

Comments
 (0)