From 15bbf3a999cdfb2d2b11d166d0b673d534f970e8 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 10 Oct 2019 12:12:13 +0200 Subject: [PATCH] fix the lint fix --- test/end-to-end-tests/src/rest/session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/end-to-end-tests/src/rest/session.js b/test/end-to-end-tests/src/rest/session.js index 2e29903800..5b97824f5c 100644 --- a/test/end-to-end-tests/src/rest/session.js +++ b/test/end-to-end-tests/src/rest/session.js @@ -50,7 +50,7 @@ module.exports = class RestSession { async join(roomIdOrAlias) { this.log.step(`joins ${roomIdOrAlias}`); - const roomId = await this._post(`/join/${encodeURIComponent(roomIdOrAlias)}`).room_id; + const roomId = (await this._post(`/join/${encodeURIComponent(roomIdOrAlias)}`)).room_id; this.log.done(); const room = new RestRoom(this, roomId, this.log); this._rooms[roomId] = room; @@ -86,7 +86,7 @@ module.exports = class RestSession { body.topic = options.topic; } - const roomId = await this._post(`/createRoom`, body).room_id; + const roomId = (await this._post(`/createRoom`, body)).room_id; this.log.done(); return new RestRoom(this, roomId, this.log); }