Skip to content

Commit

Permalink
Merge 6099695 into 71094ee
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinAlandzes committed Apr 15, 2021
2 parents 71094ee + 6099695 commit 5c08003
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/stats.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SlippiGame } from "../src";
import { PostFrameUpdateType, SlippiGame } from "../src";
import { didLoseStock } from "../src/stats/common";

const expectedThrow = {
Expand Down Expand Up @@ -115,4 +115,7 @@ describe("when calculating stock information", () => {
it("should handle undefined values", () => {
expect(didLoseStock(undefined, undefined)).toEqual(false);
});
it("should return false if stocksRemaining is null for this frame or the previous", () => {
expect(didLoseStock(<PostFrameUpdateType>{ stocksRemaining: null }, <PostFrameUpdateType>{})).toEqual(false);
});
});

0 comments on commit 5c08003

Please sign in to comment.