patch gameServices tests

This commit is contained in:
sorrelbri 2020-06-07 17:27:16 -07:00
parent be8cb70431
commit 18027ec1ef

View file

@ -14,7 +14,7 @@ describe("game services", () => {
it("init game returns game metadata", (done) => {
const { board, ...game } = gameServices.initGame({ id: 1, handicap: 4 });
game.should.eql({ ...initialMeta, handicap: 4, turn: -1 });
game.should.eql({ ...initialMeta, handicap: 4, turn: -1, territory: {} });
done();
});
@ -28,6 +28,7 @@ describe("game services", () => {
handicap: 4,
turn: 1,
gameRecord: [move],
territory: {},
};
afterMove.should.eql(afterMoveShould);
});