From 34d5870a03e3149c77bedfa6bb7567f6ea4cea63 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 3 Jan 2019 22:07:09 -0700 Subject: [PATCH] Appease the linter --- test/components/views/rooms/MemberList-test.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/components/views/rooms/MemberList-test.js b/test/components/views/rooms/MemberList-test.js index 01d351c688..57adde1717 100644 --- a/test/components/views/rooms/MemberList-test.js +++ b/test/components/views/rooms/MemberList-test.js @@ -9,7 +9,7 @@ import * as TestUtils from 'test-utils'; import sdk from '../../../../src/index'; import MatrixClientPeg from '../../../../src/MatrixClientPeg'; -import {MatrixClient, Room, RoomMember, User} from 'matrix-js-sdk'; +import {Room, RoomMember, User} from 'matrix-js-sdk'; function generateRoomId() { return '!' + Math.random().toString().slice(2, 10) + ':domain'; @@ -37,7 +37,7 @@ describe('MemberList', () => { let moderatorUsers = []; let defaultUsers = []; - beforeEach(function () { + beforeEach(function (){ TestUtils.beforeEach(this); sandbox = TestUtils.stubClient(sandbox); client = MatrixClientPeg.get(); @@ -53,6 +53,9 @@ describe('MemberList', () => { expect(memberListRoom.roomId).toBeTruthy(); // Make users + adminUsers = []; + moderatorUsers = []; + defaultUsers = []; const usersPerLevel = 2; for (let i = 0; i < usersPerLevel; i++) { const adminUser = new RoomMember(memberListRoom.roomId, `@admin${i}:localhost`); @@ -104,7 +107,7 @@ describe('MemberList', () => { memberList = r; }; root = ReactDOM.render(, parentDiv); + wrappedRef={gatherWrappedRef} />, parentDiv); }); afterEach((done) => {