From 0a4975fe96810a7a0638c302747948994dc07d21 Mon Sep 17 00:00:00 2001 From: Admin Date: Mon, 21 Sep 2026 01:11:50 +0000 Subject: [PATCH] Update progression wiring assertions --- tests/wiring.test.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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/); });