Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zielak committed Jun 6, 2024
1 parent 99ce62d commit d4da184
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server/src/room/__test__/room.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ describe("addClient", () => {

it("allows bot client", () => {
room.playersCount = undefined
expect(room.addClient("foo", true)).toBe(true)
expect(room.addBot({ clientID: "foo" })).toBe(true)
})
it("allows bot client within limit", () => {
room.playersCount = {
Expand All @@ -236,7 +236,7 @@ describe("addClient", () => {
max: 1,
},
}
expect(room.addClient("foo", true)).toBe(true)
expect(room.addBot({ clientID: "foo" })).toBe(true)
})
it("rejects bot client", () => {
room.botClients = [new Bot({ clientID: "foo" })]
Expand All @@ -248,6 +248,6 @@ describe("addClient", () => {
max: 1,
},
}
expect(room.addClient("foo", true)).toBe(false)
expect(room.addBot({ clientID: "foo" })).toBe(false)
})
})

0 comments on commit d4da184

Please sign in to comment.