From 96ac4011eb0ccca0b235be1b4be53c333f44bc9c Mon Sep 17 00:00:00 2001 From: ginnoir Date: Thu, 11 Jun 2026 19:23:58 -0500 Subject: [PATCH] chore: format story.test.ts for CI --- src/engine/__tests__/story.test.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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/); }); });