Update player hit queue wiring assertion
This commit is contained in:
parent
481a83ca7c
commit
5ea729a3a8
@ -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 () => {
|
test('player collision callback queues hits and processing occurs in scene update', async () => {
|
||||||
const source = await read('src/game-v4.js');
|
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, /this\.processPlayerHits\(\)/);
|
||||||
assert.match(source, /processQueuedPlayerHits\(\{/);
|
assert.match(source, /processQueuedPlayerHits\(\{/);
|
||||||
assert.match(source, /combat:player-hit-queued/);
|
assert.match(source, /combat:player-hit-queued/);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user