chore: format story.test.ts for CI
CI / verify (push) Successful in 1m4s
CI / verify (pull_request) Successful in 48s

This commit is contained in:
ginnoir
2026-06-11 19:23:58 -05:00
parent c76265d648
commit 96ac4011eb
+7 -4
View File
@@ -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/);
});
});