Skip to content

Commit b69e303

Browse files
filiphspsADKaster
authored andcommitted
Meta: Remove broken SerenityOS-specific command
This removes the `/commits` command that's mostly SerenityOS-centric. Let's raise a glass for our fallen hero.
1 parent 0c8d562 commit b69e303

File tree

3 files changed

+0
-295
lines changed

3 files changed

+0
-295
lines changed

src/commands/commitStatsCommand.ts

Lines changed: 0 additions & 285 deletions
This file was deleted.

src/commands/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* DO NOT export command classes using default
1919
*/
2020

21-
export { CommitStatsCommand } from "./commitStatsCommand";
2221
export { EmojiCommand } from "./emojiCommand";
2322
export { GithubCommand } from "./githubCommand";
2423
export { PlanCommand } from "./planCommand";

tests/all.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import { describe, it, expect } from "bun:test";
99
import githubAPI from "@/apis/githubAPI";
1010
import { env } from "@/config/env";
11-
import { calculateCommitStats } from "@/commands/commitStatsCommand";
12-
import { CommitClubColor } from "@/util/color";
1311

1412
describe("Github API", () => {
1513
it("Fetch repositories", async () => {
@@ -36,12 +34,5 @@ describe("Env Validation", () => {
3634
});
3735

3836
describe("Bot Features", () => {
39-
it("Commit Rank", async () => {
40-
const result = await calculateCommitStats("awesomekling");
41-
if (!result.ok) throw new Error();
42-
const { color } = result.value;
43-
expect(color?.({})).toBe(CommitClubColor.TenThousand);
44-
}, 100000);
45-
4637
// TODO expand features test suite and then break this file up
4738
});

0 commit comments

Comments
 (0)