diff --git a/src/engine/__tests__/story.test.ts b/src/engine/__tests__/story.test.ts index d6bdad5..006ff25 100644 --- a/src/engine/__tests__/story.test.ts +++ b/src/engine/__tests__/story.test.ts @@ -367,9 +367,7 @@ describe('applyOutcomes()', () => { expect(state.storyFlags.visited).toBe(false); expect(state.resources.coin).toBe(3); - expect(events).toEqual([ - { kind: 'log', nodeId: 'boot_intro', prose: 'A note in the margin.' }, - ]); + expect(events).toEqual([{ kind: 'log', nodeId: 'boot_intro', prose: 'A note in the margin.' }]); }); it('throws when consumeResource exceeds balance', () => { @@ -378,7 +376,12 @@ describe('applyOutcomes()', () => { state.resources.coin = 1; expect(() => - applyOutcomes(state, content, [{ type: 'consumeResource', resourceId: 'coin', amount: 2 }], []), + applyOutcomes( + state, + content, + [{ type: 'consumeResource', resourceId: 'coin', amount: 2 }], + [], + ), ).toThrow(/Cannot consume 2 coin/); }); });