From 5ea729a3a8c016f11b6fae32a8386da2aad052d8 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 18 Sep 2026 00:58:56 +0000 Subject: [PATCH] Update player hit queue wiring assertion --- tests/wiring.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wiring.test.mjs b/tests/wiring.test.mjs index f954f25..7ff373f 100644 --- a/tests/wiring.test.mjs +++ b/tests/wiring.test.mjs @@ -41,7 +41,7 @@ test('top HUD and cannon controls use direct image modules', async () => { test('player collision callback queues hits and processing occurs in scene update', async () => { const source = await read('src/game-v4.js'); - assert.match(source, /this\.pendingPlayerHits\.push\(\{ shot, damage \}\)/); + assert.match(source, /this\.pendingPlayerHits\.push\(\{[\s\S]*?shot,[\s\S]*?damage,[\s\S]*?x: shot\.x,[\s\S]*?y: shot\.y/); assert.match(source, /this\.processPlayerHits\(\)/); assert.match(source, /processQueuedPlayerHits\(\{/); assert.match(source, /combat:player-hit-queued/);