fix(api): clean up this slice's own lint violations
Fixed five prettier/prettier formatting errors in the three spec files Slice 0.10 wrote or edited (world-discovery.service.spec.ts, local-location-interaction.spec.ts, vertical-slice.seed.spec.ts). Scoped by hand to just those locations so the pre-existing errors elsewhere in the workspace, unrelated to this slice, are left alone. Also corrects the implementation notes, which previously understated the lint state as entirely pre-existing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1284,9 +1284,7 @@ describe('seedVisibleVerticalSlice', () => {
|
||||
|
||||
await seedVisibleVerticalSlice(dataSource);
|
||||
|
||||
const hide = itemRepository.rows.find(
|
||||
(row) => row.key === 'scorched-hide',
|
||||
);
|
||||
const hide = itemRepository.rows.find((row) => row.key === 'scorched-hide');
|
||||
const mark = itemRepository.rows.find(
|
||||
(row) => row.key === 'raider-warband-mark',
|
||||
);
|
||||
@@ -1334,9 +1332,7 @@ describe('seedVisibleVerticalSlice', () => {
|
||||
)?.silverReward as number;
|
||||
|
||||
// The longer trip has to pay, or §10's loop has no pull (slice §6).
|
||||
expect(silverFor('scorched-hide')).toBeGreaterThan(
|
||||
silverFor('tough-hide'),
|
||||
);
|
||||
expect(silverFor('scorched-hide')).toBeGreaterThan(silverFor('tough-hide'));
|
||||
expect(silverFor('raider-warband-mark')).toBeGreaterThan(
|
||||
silverFor('bandit-insignia'),
|
||||
);
|
||||
@@ -1569,9 +1565,7 @@ describe('seedVisibleVerticalSlice', () => {
|
||||
|
||||
await seedVisibleVerticalSlice(dataSource);
|
||||
|
||||
const ashPit = locationRepository.rows.find(
|
||||
(row) => row.key === 'ash-pit',
|
||||
);
|
||||
const ashPit = locationRepository.rows.find((row) => row.key === 'ash-pit');
|
||||
const pool = locationMonsterRepository.rows.filter(
|
||||
(row) => row.locationId === ASH_PIT_ID,
|
||||
);
|
||||
|
||||
@@ -46,7 +46,9 @@ function buildService(options: {
|
||||
|
||||
const locationRepository = {
|
||||
findOneBy: jest.fn(({ key }: { key: string }) =>
|
||||
Promise.resolve(locations.find((location) => location.key === key) ?? null),
|
||||
Promise.resolve(
|
||||
locations.find((location) => location.key === key) ?? null,
|
||||
),
|
||||
),
|
||||
} as unknown as Repository<LocationDefinition>;
|
||||
|
||||
|
||||
@@ -111,9 +111,11 @@ function buildService(options: {
|
||||
alreadyDiscovered?: boolean;
|
||||
}) {
|
||||
const currentLocation = location(BURNED_ROAD_ID, options.pointsOfInterest);
|
||||
const discover = jest.fn().mockResolvedValue(
|
||||
options.alreadyDiscovered ? null : { key: 'ash-pit', name: 'Ash Pit' },
|
||||
);
|
||||
const discover = jest
|
||||
.fn()
|
||||
.mockResolvedValue(
|
||||
options.alreadyDiscovered ? null : { key: 'ash-pit', name: 'Ash Pit' },
|
||||
);
|
||||
const worldDiscovery = {
|
||||
discover,
|
||||
isTravelAllowed: () => Promise.resolve(true),
|
||||
|
||||
Reference in New Issue
Block a user