fix: complete golemancy component-based redesign cleanup
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m18s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m18s
- Fix summonGolemsForRoom to use golemLoadout instead of removed enabledGolems - Fix discBonus hardcoded to 0 in golem-combat.ts pipeline (now computed from discipline effects) - Remove deprecated types: SummonedGolem, ActiveGolem, GolemDef - Remove legacy GolemancyState fields: enabledGolems, summonedGolems, legacyActiveGolems - Remove orphaned store actions: toggleGolem, setEnabledGolems - Delete orphaned legacy data files: base-golems.ts, elemental-golems.ts, hybrid-golems.ts - Update GolemDebugSection to use new golemLoadout system - Update golemancy-spec.md §17 to reflect all features as complete - Update all test files to match new type shapes - All 958 tests passing
This commit is contained in:
@@ -154,17 +154,16 @@ describe('ElementDebugSection store interactions', () => {
|
||||
});
|
||||
|
||||
describe('GolemDebugSection store interactions', () => {
|
||||
it('setEnabledGolems is callable with all golem IDs', () => {
|
||||
const mockSet = vi.fn();
|
||||
const allIds = ['stoneGolem', 'fireGolem'];
|
||||
mockSet(allIds);
|
||||
expect(mockSet).toHaveBeenCalledWith(allIds);
|
||||
it('addGolemDesign is callable', () => {
|
||||
const mockAdd = vi.fn();
|
||||
mockAdd({ id: 'test', name: 'Test', coreId: 'basic', frameId: 'earth', mindCircuitId: 'simple', enchantmentIds: [], selectedManaTypes: [], selectedSpells: [] });
|
||||
expect(mockAdd).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('setEnabledGolems is callable with empty array to disable all', () => {
|
||||
const mockSet = vi.fn();
|
||||
mockSet([]);
|
||||
expect(mockSet).toHaveBeenCalledWith([]);
|
||||
it('toggleGolemLoadoutEntry is callable', () => {
|
||||
const mockToggle = vi.fn();
|
||||
mockToggle('test-design');
|
||||
expect(mockToggle).toHaveBeenCalledWith('test-design');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user