Prepare game updates and single-process PM2 deployment
This commit is contained in:
@@ -21,9 +21,10 @@ test('local bot runs countdown, turns, result and persistence without Socket.IO'
|
||||
assert.equal(h.controller.view().phase, 'selecting');
|
||||
assert.equal(await h.controller.submitAction('blast'), false);
|
||||
assert.equal(await h.controller.submitAction('charge'), true);
|
||||
await h.clock.advance(4000); assert.deepEqual(h.controller.view().energy, [1, 1]);
|
||||
assert.equal(h.controller.view().phase, 'revealing');
|
||||
assert.deepEqual(h.controller.view().energy, [1, 1]);
|
||||
await h.clock.advance(1200); assert.equal(await h.controller.submitAction('blast'), true);
|
||||
await h.clock.advance(4000);
|
||||
await Promise.resolve();
|
||||
assert.equal(h.controller.view().finished?.winnerIndex, 0);
|
||||
assert.equal(h.controller.view().saveStatus, 'saved');
|
||||
assert.equal(h.recorded.length, 1); assert.equal(h.recorded[0].outcome, 'win');
|
||||
|
||||
Reference in New Issue
Block a user