Update progression wiring assertions

This commit is contained in:
Admin 2026-09-21 01:11:50 +00:00
parent 2c4cb471ab
commit 0a4975fe96

View File

@ -308,7 +308,7 @@ test('shipyard overlay uses supplied component art and explicit module purchases
assert.match(shipyard, /data-upgrade-slot/);
assert.match(shipyard, /CURRENT:/);
assert.match(shipyard, /NEXT:/);
assert.match(shipyard, /dispatchAction\('scrap-salvage'\)/);
assert.match(shipyard, /dispatchAction\('scrap-salvage', \{ inventoryIndex: selectedSalvageIndex \}\)/);
assert.match(shipyard, /selectedSalvageIndex/);
assert.match(shipyard, /inventoryIndex: selectedSalvageIndex/);
assert.match(shipyard, /salvageItems/);
@ -337,7 +337,7 @@ test('dock trade and missions are driven by generated port economy state', async
read('src/dock-ui.js'),
]);
assert.match(game, /marketAtPort\(this\.world, port\)/);
assert.match(game, /marketAtPort\(this\.world, port, this\.progression\.economy\)/);
assert.match(game, /missionOffersAtPort\(this\.world, port, this\.defeated\)/);
assert.match(game, /buyTradeGood\(/);
assert.match(game, /sellTradeGood\(/);
@ -407,7 +407,7 @@ test('procedural world and ship progression are wired into live gameplay', async
assert.match(source, /installedConditions/);
assert.match(source, /bestAffordableMarketUpgrade\(/);
assert.match(source, /buyAndInstallModule\(/);
assert.match(source, /installModule\(this\.progression, moduleId\)/);
assert.match(source, /installInventoryModule\(this\.progression, inventoryIndex\)/);
assert.match(source, /this\.playerBroadsideReloadMs = this\.playerStats\.reloadMs/);
assert.match(source, /stats\.windExposure/);
});