Fix indentation in fixtures.ts

This commit is contained in:
gnuxie 2021-10-19 16:34:30 +01:00
parent 6c1a502f34
commit 7773949631

View File

@ -8,14 +8,14 @@ import { makeMjolnir, teardownManagementRoom } from "./mjolnirSetupUtils";
// So there is some code in here to "undo" the mutation after we stop Mjolnir syncing. // So there is some code in here to "undo" the mutation after we stop Mjolnir syncing.
export const mochaHooks = { export const mochaHooks = {
beforeEach: [ beforeEach: [
async function() { async function() {
console.log("mochaHooks.beforeEach"); console.log("mochaHooks.beforeEach");
this.managementRoomAlias = config.managementRoom; this.managementRoomAlias = config.managementRoom;
this.mjolnir = await makeMjolnir(); this.mjolnir = await makeMjolnir();
config.RUNTIME.client = this.mjolnir.client; config.RUNTIME.client = this.mjolnir.client;
this.mjolnir.start(); this.mjolnir.start();
console.log("mochaHooks.beforeEach DONE"); console.log("mochaHooks.beforeEach DONE");
} }
], ],
afterEach: [ afterEach: [
async function() { async function() {
@ -25,7 +25,7 @@ export const mochaHooks = {
let managementRoomId = config.managementRoom; let managementRoomId = config.managementRoom;
config.managementRoom = this.managementRoomAlias; config.managementRoom = this.managementRoomAlias;
// remove alias from management room and leave it. // remove alias from management room and leave it.
await teardownManagementRoom(this.mjolnir.client, managementRoomId, this.managementRoomAlias); await teardownManagementRoom(this.mjolnir.client, managementRoomId, this.managementRoomAlias);
} }
] ]
}; };