diff --git a/src/lib/api/adapters/__tests__/entity.adapter.test.ts b/src/lib/api/adapters/__tests__/entity.adapter.test.ts index 0342b224..b4ce2200 100644 --- a/src/lib/api/adapters/__tests__/entity.adapter.test.ts +++ b/src/lib/api/adapters/__tests__/entity.adapter.test.ts @@ -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, diff --git a/src/lib/api/adapters/__tests__/grid.adapter.test.ts b/src/lib/api/adapters/__tests__/grid.adapter.test.ts index 54c2c992..753c1440 100644 --- a/src/lib/api/adapters/__tests__/grid.adapter.test.ts +++ b/src/lib/api/adapters/__tests__/grid.adapter.test.ts @@ -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 = { diff --git a/src/lib/api/resources/users.ts b/src/lib/api/resources/users.ts index 93a3eb00..ac2d5a00 100644 --- a/src/lib/api/resources/users.ts +++ b/src/lib/api/resources/users.ts @@ -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,