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