diff --git a/tests/nightSummary.test.ts b/tests/nightSummary.test.ts index 0bcd531..e75f9f1 100644 --- a/tests/nightSummary.test.ts +++ b/tests/nightSummary.test.ts @@ -132,15 +132,15 @@ describe('shouldRecordStrike', () => { describe('the booth shoe', () => { it('is real money — cash taken at the decks reaches the pay line', () => { - const without = nightCash(log({ pocketCash: 0 }), freshNightState('theRoyal', 80)); - const withTips = nightCash(log({ pocketCash: 50 }), freshNightState('theRoyal', 80)); + const without = nightCash(log({ pocketCash: 0 }), freshNightState('theRoyal', 0, 80)); + const withTips = nightCash(log({ pocketCash: 50 }), freshNightState('theRoyal', 0, 80)); expect(withTips - without).toBe(50); }); it('cannot be eaten by strikes — a deduction takes the wage, not your pocket', () => { // Three strikes wipes the wage to the Math.max(0, ...) floor. Whatever a // punter physically handed you is still in your pocket at the end of it. - const state = freshNightState('theRoyal', 80); + const state = freshNightState('theRoyal', 0, 80); state.heatStrikes = [ { reason: 'a', deferred: true }, { reason: 'b', deferred: true },