Skip to content

Commit

Permalink
WIP: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoric committed May 10, 2022
1 parent 3c3bbbe commit 951e1c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/roomMembersTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ describe("Test: Testing RoomMemberManager", function() {
// Defaults to `false`.
readonly shouldAffectWitnessRoom: boolean;
// The actual command-line.
readonly command: (roomId:string, roomAlias: string) => string;
readonly command: (roomId: string, roomAlias: string) => string;
// The number of responses we expect to this command.
// Defaults to `1`.
readonly n: number;
Expand All @@ -486,7 +486,7 @@ describe("Test: Testing RoomMemberManager", function() {

roomIndex: number | undefined;

constructor({name, shouldAffectWitnessRoom, command, n, method, sameRoom}: {name: string, command: (roomId:string, roomAlias: string) => string, shouldAffectWitnessRoom?: boolean, n?: number, method: Method, sameRoom?: boolean}) {
constructor({name, shouldAffectWitnessRoom, command, n, method, sameRoom}: {name: string, command: (roomId: string, roomAlias: string) => string, shouldAffectWitnessRoom?: boolean, n?: number, method: Method, sameRoom?: boolean}) {
this.name = name;
this.shouldAffectWitnessRoom = typeof shouldAffectWitnessRoom === "undefined" ? false : shouldAffectWitnessRoom;
this.command = command;
Expand All @@ -498,7 +498,7 @@ describe("Test: Testing RoomMemberManager", function() {
addTo(experiments: Experiment[]) {
if (this.isSameRoomAsPrevious) {
this.roomIndex = experiments[experiments.length - 1].roomIndex;
} else if (experiments.length == 0) {
} else if (experiments.length === 0) {
this.roomIndex = 0;
} else {
this.roomIndex = experiments[experiments.length - 1].roomIndex! + 1;
Expand All @@ -510,7 +510,7 @@ describe("Test: Testing RoomMemberManager", function() {
for (let experiment of [
// Kick bad users in one room, using duration syntax, no reason.
new Experiment({
name: "kick with duration",
name: "kick with duration",
command: (roomId: string) => `!mjolnir since ${Date.now() - cutDate.getTime()}ms kick 100 ${roomId}`,
method: Method.kick,
}),
Expand Down

0 comments on commit 951e1c3

Please sign in to comment.