Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-moskal committed Sep 14, 2024
1 parent 2c99a4d commit 9b62c71
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions s/director/director.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ export default <Suite>{
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)
}
})()

await client1.serverside.matchmaking.joinQueue(),
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)
Expand Down

0 comments on commit 9b62c71

Please sign in to comment.