From 4945463bebda2fcc68cd0fb767608fe66fd5fd68 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 3 Feb 2020 20:12:21 +0100 Subject: [PATCH] fix lint --- .../crypto/verification/InRoomChannel.spec.js | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/spec/unit/crypto/verification/InRoomChannel.spec.js b/spec/unit/crypto/verification/InRoomChannel.spec.js index 21810ca3a..91e42a5e2 100644 --- a/spec/unit/crypto/verification/InRoomChannel.spec.js +++ b/spec/unit/crypto/verification/InRoomChannel.spec.js @@ -18,7 +18,6 @@ import {InRoomChannel} from "../../../../src/crypto/verification/request/InRoomC import {MatrixEvent} from "../../../../src/models/event"; describe("InRoomChannel tests", function() { - const ALICE = "@alice:hs.tld"; const BOB = "@bob:hs.tld"; const MALORY = "@malory:hs.tld"; @@ -35,12 +34,15 @@ describe("InRoomChannel tests", function() { type: "m.room.message", content: { msgtype: "m.key.verification.request" }, }); - expect(InRoomChannel.getEventType(validEvent)).toStrictEqual("m.key.verification.request"); + expect(InRoomChannel.getEventType(validEvent)). + toStrictEqual("m.key.verification.request"); const validFooEvent = new MatrixEvent({ type: "m.foo" }); - expect(InRoomChannel.getEventType(validFooEvent)).toStrictEqual("m.foo"); + expect(InRoomChannel.getEventType(validFooEvent)). + toStrictEqual("m.foo"); }); - it("getOtherPartyUserId should not return anything for a request not directed at me", function() { + it("getOtherPartyUserId should not return anything for a request not " + + "directed at me", function() { const event = new MatrixEvent({ sender: BOB, type: "m.room.message", @@ -49,25 +51,29 @@ describe("InRoomChannel tests", function() { expect(InRoomChannel.getOtherPartyUserId(event, client)).toStrictEqual(undefined); }); - it("getOtherPartyUserId should not return anything an event that is not of a valid request type", function() { + it("getOtherPartyUserId should not return anything an event that is not of a valid " + + "request type", function() { // invalid because this should be a room message with msgtype const invalidRequest = new MatrixEvent({ sender: BOB, type: "m.key.verification.request", content: { to: ALICE }, }); - expect(InRoomChannel.getOtherPartyUserId(invalidRequest, client)).toStrictEqual(undefined); + expect(InRoomChannel.getOtherPartyUserId(invalidRequest, client)) + .toStrictEqual(undefined); const startEvent = new MatrixEvent({ sender: BOB, type: "m.key.verification.start", content: { to: ALICE }, }); - expect(InRoomChannel.getOtherPartyUserId(startEvent, client)).toStrictEqual(undefined); + expect(InRoomChannel.getOtherPartyUserId(startEvent, client)) + .toStrictEqual(undefined); const fooEvent = new MatrixEvent({ sender: BOB, type: "m.foo", content: { to: ALICE }, }); - expect(InRoomChannel.getOtherPartyUserId(fooEvent, client)).toStrictEqual(undefined); + expect(InRoomChannel.getOtherPartyUserId(fooEvent, client)) + .toStrictEqual(undefined); }); });