diff --git a/tests/wiring.test.mjs b/tests/wiring.test.mjs index 3f0b867..bff2e1c 100644 --- a/tests/wiring.test.mjs +++ b/tests/wiring.test.mjs @@ -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/); });