update tests and mocks for 'no_augment' rename

This commit is contained in:
Justin Edmund 2025-12-31 23:52:02 -08:00
parent 92f2fb0bab
commit 04ce22fbdb
4 changed files with 6 additions and 6 deletions

View file

@ -29,7 +29,7 @@ describe('EntityAdapter', () => {
name: { en: 'Dark Opus', ja: 'ダークオーパス' },
hasWeaponKeys: true,
hasAwakening: true,
augmentType: 'none',
augmentType: 'no_augment',
extra: false,
elementChangeable: false
},

View file

@ -29,7 +29,7 @@ describe('GridAdapter', () => {
name: { en: 'Dark Opus', ja: 'ダークオーパス' },
hasWeaponKeys: true,
hasAwakening: true,
augmentType: 'none',
augmentType: 'no_augment',
extra: false,
elementChangeable: false
},

View file

@ -116,8 +116,8 @@ export function canWeaponBeModified(gridWeapon: GridWeapon | undefined): boolean
const hasWeaponKeys = seriesHasWeaponKeys(weapon.series)
// AX skills or Befoulment - check augmentType from series
const augmentType = weapon.series?.augmentType ?? 'none'
const hasAugments = augmentType !== 'none'
const augmentType = weapon.series?.augmentType ?? 'no_augment'
const hasAugments = augmentType !== 'no_augment'
// Awakening (maxAwakeningLevel > 0 means it can have awakening)
const hasAwakening = (weapon.maxAwakeningLevel ?? 0) > 0

View file

@ -19,7 +19,7 @@ const mockOpusSeries = {
name: { en: 'Opus', ja: 'オプス' },
hasWeaponKeys: true,
hasAwakening: true,
augmentType: 'none' as const,
augmentType: 'no_augment' as const,
extra: false,
elementChangeable: false
};
@ -30,7 +30,7 @@ const mockDraconicSeries = {
name: { en: 'Draconic', ja: 'ドラゴニック' },
hasWeaponKeys: true,
hasAwakening: false,
augmentType: 'none' as const,
augmentType: 'no_augment' as const,
extra: false,
elementChangeable: false
};