Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taahamahdi committed Jan 22, 2024
1 parent 6df08d5 commit 4f1107d
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 167 deletions.
4 changes: 1 addition & 3 deletions src/test/ci/begin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ describe("begin command", () => {
"dummy",
gameStarter,
GameType.CLASSIC,
false,
);

sandbox.restore();
Expand Down Expand Up @@ -86,7 +85,6 @@ describe("begin command", () => {
"dummy",
gameStarter,
GameType.TEAMS,
true,
);

sandbox.restore();
Expand All @@ -103,7 +101,7 @@ describe("begin command", () => {
});
});

describe("atleast 1 team has been added", () => {
describe("at least 1 team has been added", () => {
it("should return false", () => {
const scoreboard = gameSession.scoreboard as TeamScoreboard;
scoreboard.addTeam(
Expand Down
1 change: 0 additions & 1 deletion src/test/ci/game_session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ describe("game session", () => {
"123",
new KmqMember("123"),
GameType.CLASSIC,
true,
);

sandbox.stub(Session, "getSession").callsFake(() => gameSession);
Expand Down
6 changes: 1 addition & 5 deletions src/test/ci/game_utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,7 @@ describe("game utils", () => {
it("should return the expected song count", async () => {
const limit = 50;
await guildPreference.setLimit(0, limit);
const songCount = await getAvailableSongCount(
guildPreference,
true,
);
const songCount = await getAvailableSongCount(guildPreference);

assert(songCount.count);
assert(songCount.countBeforeLimit);
Expand All @@ -324,7 +321,6 @@ describe("game utils", () => {
guildId,
new KmqMember("id"),
GameType.CLASSIC,
false,
);

sandbox.restore();
Expand Down
2 changes: 0 additions & 2 deletions src/test/ci/leaderboard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ describe("leaderboard command", () => {
SERVER_ID,
gameStarter,
GameType.CLASSIC,
false,
);

sandbox.restore();
Expand Down Expand Up @@ -731,7 +730,6 @@ describe("leaderboard command", () => {
SERVER_ID,
gameStarter,
GameType.CLASSIC,
true,
);

sandbox.restore();
Expand Down
1 change: 0 additions & 1 deletion src/test/ci/listening_session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ describe("listening session", () => {
"123",
"123",
new KmqMember("123"),
true,
);

sandbox
Expand Down
Loading

0 comments on commit 4f1107d

Please sign in to comment.