Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tore Simonsen committed Sep 20, 2024
1 parent b966fe6 commit 27c6595
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/components/views/dialogs/InviteDialog-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { RoomType, MatrixClient, MatrixError, Room } from "matrix-js-sdk/src/mat
import { KnownMembership } from "matrix-js-sdk/src/types";
import { sleep } from "matrix-js-sdk/src/utils";
import { mocked, Mocked } from "jest-mock";

import InviteDialog from "../../../../src/components/views/dialogs/InviteDialog";
import { InviteKind } from "../../../../src/components/views/dialogs/InviteDialogTypes";
import {
Expand Down Expand Up @@ -217,9 +218,7 @@ describe("InviteDialog", () => {
beforeEach(() => {
// Mock activeSpaceRoom to be an object with getJoinedMembers method
const roomMock: Partial<Room> = {
getJoinedMembers: jest
.fn()
.mockReturnValue([mockSpaceMembers/* mock RoomMember[] */]),
getJoinedMembers: jest.fn().mockReturnValue([mockSpaceMembers /* mock RoomMember[] */]),
};
const mockBuildMembers = jest.spyOn(SortMembers, "buildMemberScores");
mockBuildMembers.mockImplementation(() => {
Expand Down

0 comments on commit 27c6595

Please sign in to comment.