patch gameServices tests
This commit is contained in:
parent
be8cb70431
commit
18027ec1ef
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue