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/);