diff --git a/tests/game-logic.test.mjs b/tests/game-logic.test.mjs index dcf1c43..a4f0420 100644 --- a/tests/game-logic.test.mjs +++ b/tests/game-logic.test.mjs @@ -26,7 +26,7 @@ test('first pirate hit removes exactly the default damage and does not end the g }); -test('actual queued first player hit destroys the projectile, applies 6 damage, and leaves gameplay active', () => { +test('actual queued first player hit applies 6 damage without mutating projectile lifecycle', () => { const shot = { active: true, destroyed: false, @@ -43,8 +43,8 @@ test('actual queued first player hit destroys the projectile, applies 6 damage, hits: [{ shot, damage: DEFAULT_PIRATE_SHOT_DAMAGE }], }); - assert.equal(shot.destroyed, true); - assert.equal(shot.active, false); + assert.equal(shot.destroyed, false); + assert.equal(shot.active, true); assert.equal(firstFrame.hull, 94); assert.equal(firstFrame.appliedHits, 1); assert.equal(firstFrame.ignoredHits, 0);