Skip to content
Extraits de code Groupes Projets
Valider 654e0a02 rédigé par Andrew Ferrazzutti's avatar Andrew Ferrazzutti
Parcourir les fichiers

Fix some test failures


- Set `_bot` on DiscordBot instances instead of its getter
- Add a missing await to prevent a potential test timeout

Signed-off-by: default avatarAndrew Ferrazzutti <andrewf@element.io>
parent c00f3099
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -115,7 +115,7 @@ describe("DiscordBot", () => {
mockBridge,
{},
);
discord.bot = { user: { id: "654" } };
discord._bot = { user: { id: "654" } };
discord.userSync = {
OnUpdateUser: async () => { },
};
......
......@@ -26,7 +26,7 @@ describe("DiscordStore", () => {
describe("init", () => {
it("can create a db", async () => {
const store = new DiscordStore(":memory:");
return store.init();
await store.init();
});
});
describe("addUserToken", () => {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter