Skip to content

Commit

Permalink
moved test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ckoenig1 committed May 26, 2021
1 parent efd6624 commit 74c75c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/stats.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ const expectedThrow = {
back: 2,
down: 1,
};
const expectedTech = {
backward: 2,
forward: 1,
neutral: 8,
fail: 4,
};

const expectedGrab = {
success: 6,
Expand Down Expand Up @@ -141,6 +135,12 @@ describe("when calculating stats", () => {
it("should count techs only a single time", () => {
const game = new SlippiGame("slp/techTest.slp");
const stats = game.getStats();
const expectedTech = {
backward: 2,
forward: 1,
neutral: 8,
fail: 4,
};
expect(stats?.actionCounts[1].groundTechCount).toEqual(expectedTech);
expect(stats?.actionCounts[1].wallTechCount).toEqual({ success: 0, fail: 0 });
});
Expand Down

0 comments on commit 74c75c0

Please sign in to comment.