chore: run format and fix sandbox browser timeouts

This commit is contained in:
Peter Steinberger committed 2026-01-16 09:18:58 +00:00
1 parent 7c34883267
commit 4965727f39
32 files changed
+17548 -15412

No files matched your search

+3 -5
View File
@@ -70,11 +70,9 @@ export const registerTelegramNativeCommands = ({
) => Promise<unknown>;
};
if (typeof api.setMyCommands === "function") {
api
.setMyCommands(allCommands)
.catch((err) => {
runtime.error?.(danger(`telegram setMyCommands failed: ${String(err)}`));
});
api.setMyCommands(allCommands).catch((err) => {
runtime.error?.(danger(`telegram setMyCommands failed: ${String(err)}`));
});
} else {
logVerbose("telegram: setMyCommands unavailable; skipping registration");
}
+1 -3
View File
@@ -235,9 +235,7 @@ describe("createTelegramBot", () => {
expect(nativeStatus).toBeDefined();
expect(registered).toContainEqual({ command: "custom_backup", description: "Git backup" });
expect(registered).not.toContainEqual({ command: "status", description: "Custom status" });
expect(registered.filter((command) => command.command === "status")).toEqual([
nativeStatus,
]);
expect(registered.filter((command) => command.command === "status")).toEqual([nativeStatus]);
expect(errorSpy).toHaveBeenCalled();
});