mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-07-01 00:51:36 +00:00
Fix helloTest hooks running before global hooks.
This commit is contained in:
parent
c52084c58a
commit
7a20b5a212
|
@ -1,12 +1,15 @@
|
||||||
import config from "../../src/config";
|
import config from "../../src/config";
|
||||||
import { newTestUser, noticeListener } from "./clientHelper"
|
import { newTestUser, noticeListener } from "./clientHelper"
|
||||||
|
|
||||||
describe("Test: !help command", () => {
|
describe("Test: !help command", function() {
|
||||||
let client;
|
let client;
|
||||||
before(async function () {
|
this.beforeEach(async function () {
|
||||||
client = await newTestUser(true);
|
client = await newTestUser(true);
|
||||||
await client.start();
|
await client.start();
|
||||||
})
|
})
|
||||||
|
this.afterEach(async function () {
|
||||||
|
await client.stop();
|
||||||
|
})
|
||||||
it('Mjolnir responded to !mjolnir help', async function() {
|
it('Mjolnir responded to !mjolnir help', async function() {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
console.log(`management room ${config.managementRoom}`);
|
console.log(`management room ${config.managementRoom}`);
|
||||||
|
@ -24,7 +27,4 @@ describe("Test: !help command", () => {
|
||||||
await client.sendMessage(config.managementRoom, {msgtype: "m.text", body: "!mjolnir help"})
|
await client.sendMessage(config.managementRoom, {msgtype: "m.text", body: "!mjolnir help"})
|
||||||
await reply
|
await reply
|
||||||
})
|
})
|
||||||
after(async function () {
|
|
||||||
await client.stop();
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user