patch game meta to include score in tests

This commit is contained in:
sorrelbri 2020-06-20 17:23:13 -07:00
parent a8119bb194
commit 4b507cce96
2 changed files with 3 additions and 3 deletions

View file

@ -20,8 +20,6 @@ describe("Game", () => {
it("Get meta returns proper data for games with no record", (done) => {
Game().getMeta().should.eql(initialMeta);
// Game().initGame().getMeta()
// .should.eql({ ...initialMeta, turn: 1 });
done();
});
});
@ -1096,6 +1094,7 @@ const initialMeta = {
wScore: 0,
},
gameRecord: [],
score: 0,
};
const emptyBoard9 = {

View file

@ -1,6 +1,6 @@
const chai = require("chai");
const should = chai.should();
const gameServices = require("../services/gameServices")();
const gameServices = require("../services/gameServices")({});
describe("game services", () => {
afterEach(() => gameServices.dropGame(1));
@ -430,4 +430,5 @@ const initialMeta = {
wScore: 0,
},
gameRecord: [],
score: 0,
};