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:
parent
aa87ccb7d7
commit
e23276b4de
3 changed files with 6 additions and 9 deletions
|
|
@ -61,10 +61,7 @@ describe('EntityAdapter', () => {
|
||||||
special: false,
|
special: false,
|
||||||
recruits: null,
|
recruits: null,
|
||||||
gender: 0,
|
gender: 0,
|
||||||
race: {
|
race: [1, 2],
|
||||||
race1: 1,
|
|
||||||
race2: 2
|
|
||||||
},
|
|
||||||
proficiency: [1, 2],
|
proficiency: [1, 2],
|
||||||
hp: {
|
hp: {
|
||||||
minHp: 150,
|
minHp: 150,
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,8 @@ describe('GridAdapter', () => {
|
||||||
series: 1,
|
series: 1,
|
||||||
proficiency: 1,
|
proficiency: 1,
|
||||||
uncap: { flb: true, ulb: true, transcendence: false },
|
uncap: { flb: true, ulb: true, transcendence: false },
|
||||||
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600 },
|
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600, maxHpUlb: 700 },
|
||||||
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200 }
|
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200, maxAtkUlb: 1400 }
|
||||||
}
|
}
|
||||||
|
|
||||||
const mockCharacter: Character = {
|
const mockCharacter: Character = {
|
||||||
|
|
@ -54,8 +54,8 @@ describe('GridAdapter', () => {
|
||||||
maxLevel: 150,
|
maxLevel: 150,
|
||||||
series: 1,
|
series: 1,
|
||||||
uncap: { flb: true, ulb: true, transcendence: false },
|
uncap: { flb: true, ulb: true, transcendence: false },
|
||||||
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600 },
|
hp: { minHp: 100, maxHp: 500, maxHpFlb: 600, maxHpUlb: 700 },
|
||||||
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200 }
|
atk: { minAtk: 200, maxAtk: 1000, maxAtkFlb: 1200, maxAtkUlb: 1400 }
|
||||||
}
|
}
|
||||||
|
|
||||||
const mockGridWeapon: GridWeapon = {
|
const mockGridWeapon: GridWeapon = {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ export const users = {
|
||||||
updates.avatar = avatar
|
updates.avatar = avatar
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = await userAdapter.updateProfile(optionalProps(updates))
|
const result = await userAdapter.updateProfile(updates)
|
||||||
return {
|
return {
|
||||||
id: result.id,
|
id: result.id,
|
||||||
username: result.username,
|
username: result.username,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue