From 9b62c7146f64879469988483d2d03af53d5abac7 Mon Sep 17 00:00:00 2001 From: Chase Moskal Date: Sat, 14 Sep 2024 14:57:23 -0700 Subject: [PATCH] fix: test --- s/director/director.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/s/director/director.test.ts b/s/director/director.test.ts index 48dbb87..6aad13c 100644 --- a/s/director/director.test.ts +++ b/s/director/director.test.ts @@ -24,13 +24,13 @@ export default { const client1 = situation.newClient() const client2 = situation.newClient() - let started = false + let initialized = false - client1.clientside.game.start = (() => { - const {start} = client1.clientside.game - return async inputs => { - started = true - return await start(inputs) + client1.clientside.game.initialize = (() => { + const {initialize} = client1.clientside.game + return async memo => { + initialized = true + return await initialize(memo) } })() @@ -38,7 +38,7 @@ export default { expect((await client1.serverside.report()).personStatus).equals("queued") await client2.serverside.matchmaking.joinQueue(), - expect(started).ok() + expect(initialized).ok() const {worldStats, personStatus} = await client1.serverside.report() expect(worldStats.games).equals(1)