fix: Phase 7 partial - fix test mock data errors (36 -> 34 errors)

Fixed multiple test fixture type errors to match actual schema definitions.

Changes:
1. Removed leftover optionalProps() call in users.ts (missed in Phase 2)
2. Fixed Character race field in entity.adapter.test.ts
   - Changed from object {race1, race2} to array [1, 2]
   - Matches entity.adapter.ts Character interface expectation
3. Added missing ULB stat fields to Weapon mocks in grid.adapter.test.ts
   - Added maxHpUlb and maxAtkUlb to hp/atk objects
   - Required by entities.ts Weapon interface

Result: 36 → 34 errors (-2)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Justin Edmund 2025-11-28 19:55:52 -08:00
parent aa87ccb7d7
commit e23276b4de
3 changed files with 6 additions and 9 deletions

View file

@ -61,10 +61,7 @@ describe('EntityAdapter', () => {
special: false,
recruits: null,
gender: 0,
race: {
race1: 1,
race2: 2
},
race: [1, 2],
proficiency: [1, 2],
hp: {
minHp: 150,

View file

@ -24,8 +24,8 @@ describe('GridAdapter', () => {
series: 1,
proficiency: 1,
uncap: { flb: true, ulb: true, transcendence: false },
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600 },
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200 }
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600, maxHpUlb: 700 },
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200, maxAtkUlb: 1400 }
}
const mockCharacter: Character = {
@ -54,8 +54,8 @@ describe('GridAdapter', () => {
maxLevel: 150,
series: 1,
uncap: { flb: true, ulb: true, transcendence: false },
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600 },
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200 }
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600, maxHpUlb: 700 },
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200, maxAtkUlb: 1400 }
}
const mockGridWeapon: GridWeapon = {

View file

@ -45,7 +45,7 @@ export const users = {
updates.avatar = avatar
}
const result = await userAdapter.updateProfile(optionalProps(updates))
const result = await userAdapter.updateProfile(updates)
return {
id: result.id,
username: result.username,