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

Commit

Permalink
Fix ts strict
Browse files Browse the repository at this point in the history
  • Loading branch information
germain-gg committed Dec 13, 2022
1 parent 0473b00 commit 3b493e6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/stores/TypingStore-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

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

import TypingStore from "../../src/stores/TypingStore";
Expand All @@ -31,10 +30,6 @@ jest.mock("../../src/settings/SettingsStore", () => ({
describe("TypingStore", () => {
let typingStore: TypingStore;
let mockClient: MatrixClient;
const settings = {
sendTypingNotifications: true,
feature_threadstable: false,
};
const roomId = "!test:example.com";
const localRoomId = LOCAL_ROOM_ID_PREFIX + "test";

Expand All @@ -45,8 +40,8 @@ describe("TypingStore", () => {
const context = new TestSdkContext();
context.client = mockClient;
typingStore = new TypingStore(context);
mocked(SettingsStore.getValue).mockImplementation((setting: string) => {
return settings[setting];
jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => {
return name === "sendTypingNotifications";
});
});

Expand Down

0 comments on commit 3b493e6

Please sign in to comment.