CODEBASE: Fix lint errors 4 (#1773)

Co-authored-by: Michael Ficocelli <ficocemt@gmail.com>
This commit is contained in:
catloversg
2024-11-14 22:47:35 +07:00
committed by GitHub
parent 4f84a894eb
commit 97ca8c5f5e
23 changed files with 123 additions and 99 deletions

View File

@@ -13,13 +13,14 @@ describe("Board analysis utility tests", () => {
.filter((p) => p === "O").length;
expect(whitePieceCount).toEqual(1);
expect(result).toEqual({
board: expect.any(Object),
board: result.board, // This board state is different every run, due to random offline nodes and handicap placement
previousPlayer: GoColor.white,
previousBoards: [],
ai: GoOpponent.Illuminati,
passCount: 0,
cheatCount: 0,
});
expect(result.board?.length).toEqual(5);
});
it("Correctly applies the board size and handicap for the special opponent", () => {