Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider ca50fa5e rédigé par Andrew Ferrazzutti's avatar Andrew Ferrazzutti Validation de GitHub
Parcourir les fichiers

Merge pull request #790 from matrix-org/af/fix-ci

Fix CI build, lint, and test
parents cbd3c679 654e0a02
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
}, },
"homepage": "https://github.com/Half-Shot/matrix-appservice-discord#readme", "homepage": "https://github.com/Half-Shot/matrix-appservice-discord#readme",
"dependencies": { "dependencies": {
"better-discord.js": "git://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117", "better-discord.js": "git+https://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117",
"better-sqlite3": "^7.1.0", "better-sqlite3": "^7.1.0",
"command-line-args": "^5.1.1", "command-line-args": "^5.1.1",
"command-line-usage": "^6.1.0", "command-line-usage": "^6.1.0",
......
...@@ -167,7 +167,7 @@ class IntentMock extends AppserviceMockBase { ...@@ -167,7 +167,7 @@ class IntentMock extends AppserviceMockBase {
this.funcCalled("sendText", roomId, body); this.funcCalled("sendText", roomId, body);
} }
public sendEvent(roomId: string, content: any) { public sendEvent(roomId: string, content: Record<string, unknown>) {
this.funcCalled("sendEvent", roomId, content); this.funcCalled("sendEvent", roomId, content);
} }
...@@ -218,7 +218,7 @@ class MatrixClientMock extends AppserviceMockBase { ...@@ -218,7 +218,7 @@ class MatrixClientMock extends AppserviceMockBase {
this.funcCalled("kickUser", roomId, userId); this.funcCalled("kickUser", roomId, userId);
} }
public sendStateEvent(roomId: string, type: string, stateKey: string, content: {}) { public sendStateEvent(roomId: string, type: string, stateKey: string, content: Record<string, unknown>) {
this.funcCalled("sendStateEvent", roomId, type, stateKey, content); this.funcCalled("sendStateEvent", roomId, type, stateKey, content);
} }
......
...@@ -115,7 +115,7 @@ describe("DiscordBot", () => { ...@@ -115,7 +115,7 @@ describe("DiscordBot", () => {
mockBridge, mockBridge,
{}, {},
); );
discord.bot = { user: { id: "654" } }; discord._bot = { user: { id: "654" } };
discord.userSync = { discord.userSync = {
OnUpdateUser: async () => { }, OnUpdateUser: async () => { },
}; };
......
...@@ -26,7 +26,7 @@ describe("DiscordStore", () => { ...@@ -26,7 +26,7 @@ describe("DiscordStore", () => {
describe("init", () => { describe("init", () => {
it("can create a db", async () => { it("can create a db", async () => {
const store = new DiscordStore(":memory:"); const store = new DiscordStore(":memory:");
return store.init(); await store.init();
}); });
}); });
describe("addUserToken", () => { describe("addUserToken", () => {
......
...@@ -814,9 +814,9 @@ bcrypt-pbkdf@^1.0.0: ...@@ -814,9 +814,9 @@ bcrypt-pbkdf@^1.0.0:
dependencies: dependencies:
tweetnacl "^0.14.3" tweetnacl "^0.14.3"
"better-discord.js@git://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117": "better-discord.js@git+https://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117":
version "12.3.1" version "12.3.1"
resolved "git://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117" resolved "git+https://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117"
dependencies: dependencies:
"@discordjs/collection" "^0.1.6" "@discordjs/collection" "^0.1.6"
"@discordjs/form-data" "^3.0.1" "@discordjs/form-data" "^3.0.1"
...@@ -1393,9 +1393,9 @@ dir-glob@^3.0.1: ...@@ -1393,9 +1393,9 @@ dir-glob@^3.0.1:
dependencies: dependencies:
path-type "^4.0.0" path-type "^4.0.0"
"discord-markdown@git://github.com/Sorunome/discord-markdown.git#7958a03a952ed02cbd588b09eb04bc070b3a11f2": "discord-markdown@git+https://github.com/Sorunome/discord-markdown.git#7958a03a952ed02cbd588b09eb04bc070b3a11f2":
version "2.3.1" version "2.3.1"
resolved "git://github.com/Sorunome/discord-markdown.git#7958a03a952ed02cbd588b09eb04bc070b3a11f2" resolved "git+https://github.com/Sorunome/discord-markdown.git#7958a03a952ed02cbd588b09eb04bc070b3a11f2"
dependencies: dependencies:
highlight.js "^9.18.1" highlight.js "^9.18.1"
node-emoji "^1.10.0" node-emoji "^1.10.0"
...@@ -2792,7 +2792,7 @@ matrix-discord-parser@0.1.5: ...@@ -2792,7 +2792,7 @@ matrix-discord-parser@0.1.5:
resolved "https://registry.yarnpkg.com/matrix-discord-parser/-/matrix-discord-parser-0.1.5.tgz#dd6a481a569567e8e30d70599d4dcb173261504c" resolved "https://registry.yarnpkg.com/matrix-discord-parser/-/matrix-discord-parser-0.1.5.tgz#dd6a481a569567e8e30d70599d4dcb173261504c"
integrity sha512-SilBNcNeJCrL6XEHVfbOhupNJICFdyFWfwv85Wtyh1Xxc0XPv4zK/gpEPogVeuKJD3TE0KT4iHq0nLgUJ8GBiQ== integrity sha512-SilBNcNeJCrL6XEHVfbOhupNJICFdyFWfwv85Wtyh1Xxc0XPv4zK/gpEPogVeuKJD3TE0KT4iHq0nLgUJ8GBiQ==
dependencies: dependencies:
discord-markdown "git://github.com/Sorunome/discord-markdown.git#7958a03a952ed02cbd588b09eb04bc070b3a11f2" discord-markdown "git+https://github.com/Sorunome/discord-markdown.git#7958a03a952ed02cbd588b09eb04bc070b3a11f2"
escape-html "^1.0.3" escape-html "^1.0.3"
got "^11.6.0" got "^11.6.0"
highlight.js "^9.18.1" highlight.js "^9.18.1"
......
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