patch game meta to include score in tests
This commit is contained in:
parent
a8119bb194
commit
4b507cce96
2 changed files with 3 additions and 3 deletions
|
@ -20,8 +20,6 @@ describe("Game", () => {
|
||||||
|
|
||||||
it("Get meta returns proper data for games with no record", (done) => {
|
it("Get meta returns proper data for games with no record", (done) => {
|
||||||
Game().getMeta().should.eql(initialMeta);
|
Game().getMeta().should.eql(initialMeta);
|
||||||
// Game().initGame().getMeta()
|
|
||||||
// .should.eql({ ...initialMeta, turn: 1 });
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1096,6 +1094,7 @@ const initialMeta = {
|
||||||
wScore: 0,
|
wScore: 0,
|
||||||
},
|
},
|
||||||
gameRecord: [],
|
gameRecord: [],
|
||||||
|
score: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
const emptyBoard9 = {
|
const emptyBoard9 = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const chai = require("chai");
|
const chai = require("chai");
|
||||||
const should = chai.should();
|
const should = chai.should();
|
||||||
const gameServices = require("../services/gameServices")();
|
const gameServices = require("../services/gameServices")({});
|
||||||
|
|
||||||
describe("game services", () => {
|
describe("game services", () => {
|
||||||
afterEach(() => gameServices.dropGame(1));
|
afterEach(() => gameServices.dropGame(1));
|
||||||
|
@ -430,4 +430,5 @@ const initialMeta = {
|
||||||
wScore: 0,
|
wScore: 0,
|
||||||
},
|
},
|
||||||
gameRecord: [],
|
gameRecord: [],
|
||||||
|
score: 0,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue