From a561d4741daf84cd1ff4bf2f01d8248b1c13bc29 Mon Sep 17 00:00:00 2001 From: Hero Protagonist Date: Tue, 18 Jun 2024 18:59:29 -0400 Subject: [PATCH] deno fmt --- src/commands.ts | 2 +- src/context.ts | 2 +- test/jaroWrinkler.test.ts | 86 +++++++++++++++++++-------------------- 3 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/commands.ts b/src/commands.ts index edbd68f..a65caad 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -197,7 +197,7 @@ export class Commands { * Calling this method with upperCased command names registered, will throw * @see https://core.telegram.org/bots/api#botcommand * @see https://core.telegram.org/method/bots.setBotCommands - * + * * @param Instance of `bot` or { api: bot.api } */ public async setCommands({ api }: { api: Api }) { diff --git a/src/context.ts b/src/context.ts index 7498279..1ec74f0 100644 --- a/src/context.ts +++ b/src/context.ts @@ -13,7 +13,7 @@ export interface CommandsFlavor extends Context { * Calling this method with upperCased command names registered, will throw * @see https://core.telegram.org/bots/api#botcommand * @see https://core.telegram.org/method/bots.setBotCommands - * + * * @example * ```typescript * bot.hears("sudo", (ctx) => diff --git a/test/jaroWrinkler.test.ts b/test/jaroWrinkler.test.ts index 64eb058..e33eea2 100644 --- a/test/jaroWrinkler.test.ts +++ b/test/jaroWrinkler.test.ts @@ -115,67 +115,67 @@ describe("Jaro-Wrinkler Algorithm", () => { .localize("fr", "duc", "d"); cmds.command(/dad_(.*)/, "dad", () => {}) - .localize('es', /papa_(.*)/, "f",); + .localize("es", /papa_(.*)/, "f"); it("should output all commands names, language and prefix", () => { const json = cmds.toElementals(); assertEquals(json, [ { - name: "butcher", - language: "default", - prefix: "?", - scopes: [ { type: "default" } ], - description: "_" + name: "butcher", + language: "default", + prefix: "?", + scopes: [{ type: "default" }], + description: "_", }, { - name: "carnicero", - language: "es", - prefix: "?", - scopes: [ { type: "default" } ], - description: "a" + name: "carnicero", + language: "es", + prefix: "?", + scopes: [{ type: "default" }], + description: "a", }, { - name: "macellaio", - language: "it", - prefix: "?", - scopes: [ { type: "default" } ], - description: "b" + name: "macellaio", + language: "it", + prefix: "?", + scopes: [{ type: "default" }], + description: "b", }, { - name: "duke", - language: "default", - prefix: "/", - scopes: [ { type: "default" } ], - description: "_" + name: "duke", + language: "default", + prefix: "/", + scopes: [{ type: "default" }], + description: "_", }, { - name: "duque", - language: "es", - prefix: "/", - scopes: [ { type: "default" } ], - description: "c" + name: "duque", + language: "es", + prefix: "/", + scopes: [{ type: "default" }], + description: "c", }, { - name: "duc", - language: "fr", - prefix: "/", - scopes: [ { type: "default" } ], - description: "d" + name: "duc", + language: "fr", + prefix: "/", + scopes: [{ type: "default" }], + description: "d", }, { - name: "dad_(.*)", - language: "default", - prefix: "/", - scopes: [ { type: "default" } ], - description: "dad" + name: "dad_(.*)", + language: "default", + prefix: "/", + scopes: [{ type: "default" }], + description: "dad", }, { - name: "papa_(.*)", - language: "es", - prefix: "/", - scopes: [ { type: "default" } ], - description: "f" - } - ]); + name: "papa_(.*)", + language: "es", + prefix: "/", + scopes: [{ type: "default" }], + description: "f", + }, + ]); }); }); describe("should return the command localization related to the user lang", () => {