chore: format story.test.ts for CI
This commit is contained in:
@@ -367,9 +367,7 @@ describe('applyOutcomes()', () => {
|
|||||||
|
|
||||||
expect(state.storyFlags.visited).toBe(false);
|
expect(state.storyFlags.visited).toBe(false);
|
||||||
expect(state.resources.coin).toBe(3);
|
expect(state.resources.coin).toBe(3);
|
||||||
expect(events).toEqual([
|
expect(events).toEqual([{ kind: 'log', nodeId: 'boot_intro', prose: 'A note in the margin.' }]);
|
||||||
{ kind: 'log', nodeId: 'boot_intro', prose: 'A note in the margin.' },
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('throws when consumeResource exceeds balance', () => {
|
it('throws when consumeResource exceeds balance', () => {
|
||||||
@@ -378,7 +376,12 @@ describe('applyOutcomes()', () => {
|
|||||||
state.resources.coin = 1;
|
state.resources.coin = 1;
|
||||||
|
|
||||||
expect(() =>
|
expect(() =>
|
||||||
applyOutcomes(state, content, [{ type: 'consumeResource', resourceId: 'coin', amount: 2 }], []),
|
applyOutcomes(
|
||||||
|
state,
|
||||||
|
content,
|
||||||
|
[{ type: 'consumeResource', resourceId: 'coin', amount: 2 }],
|
||||||
|
[],
|
||||||
|
),
|
||||||
).toThrow(/Cannot consume 2 coin/);
|
).toThrow(/Cannot consume 2 coin/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user