mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-09-29 20:56:23 +00:00
Fix indentation in fixtures.ts
This commit is contained in:
parent
6c1a502f34
commit
7773949631
@ -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);
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user