mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 09:22:24 +00:00
Fix rooms command integration test. (#958)
Fixes https://github.com/the-draupnir-project/Draupnir/issues/957.
This commit is contained in:
1 parent
8326d7fe0f
commit
3e246ecdb6
1 file changed
+4
-2
@@ -89,10 +89,12 @@ describe("Test: The rooms commands", function () {
|
||||
});
|
||||
}
|
||||
);
|
||||
// wait for policy change notification to create
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
assert.equal(
|
||||
protectedRoomsMessage["content"]["body"].includes("1"),
|
||||
protectedRoomsMessage["content"]["body"].includes("2"),
|
||||
true,
|
||||
"Only the management room should be protected."
|
||||
"Only the management room should be protected and the policy change notification room."
|
||||
);
|
||||
} as unknown as Mocha.AsyncFunc
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user