style: fix prettier formatting drift in two API files

vertical-slice.seed.ts and danger-rating.spec.ts had line-wrapping
that no longer matched prettier's output, which a CI prettier --check
would flag. Formatting only, no logic change.
This commit is contained in:
Bastian Wagner
2026-08-19 14:33:41 +02:00
parent 833fa52d8d
commit 137a18f4e7
2 changed files with 3 additions and 8 deletions

View File

@@ -20,8 +20,7 @@ export async function seedVisibleVerticalSlice(
const connectionRepository = dataSource.getRepository(LocationConnection); const connectionRepository = dataSource.getRepository(LocationConnection);
const characterRepository = dataSource.getRepository(Character); const characterRepository = dataSource.getRepository(Character);
const monsterRepository = dataSource.getRepository(MonsterDefinition); const monsterRepository = dataSource.getRepository(MonsterDefinition);
const locationMonsterRepository = const locationMonsterRepository = dataSource.getRepository(LocationMonster);
dataSource.getRepository(LocationMonster);
const locations = [ const locations = [
{ {

View File

@@ -21,9 +21,7 @@ describe('calculateDangerRating', () => {
// ratio = 61 / 44 = 1.3863636... -> not < 1.0, and < 1.7 -> STRONG // ratio = 61 / 44 = 1.3863636... -> not < 1.0, and < 1.7 -> STRONG
const monster = { attack: 9, armor: 5, hp: 75 }; const monster = { attack: 9, armor: 5, hp: 75 };
expect(calculateDangerRating(CHARACTER, monster)).toBe( expect(calculateDangerRating(CHARACTER, monster)).toBe(DangerRating.STRONG);
DangerRating.STRONG,
);
}); });
it('rates a monster just below the WEAK/MATCH boundary as WEAK', () => { it('rates a monster just below the WEAK/MATCH boundary as WEAK', () => {
@@ -61,9 +59,7 @@ describe('calculateDangerRating', () => {
// (One power lower, 101, gives ratio 101/44 = 2.2954..., which is VERY_DANGEROUS.) // (One power lower, 101, gives ratio 101/44 = 2.2954..., which is VERY_DANGEROUS.)
const monster = { attack: 20, armor: 10, hp: 10 }; const monster = { attack: 20, armor: 10, hp: 10 };
expect(calculateDangerRating(CHARACTER, monster)).toBe( expect(calculateDangerRating(CHARACTER, monster)).toBe(DangerRating.DEADLY);
DangerRating.DEADLY,
);
}); });
}); });