Fixing tests

This commit is contained in:
David Négrier 2021-12-23 10:44:46 +01:00
parent 35463930a0
commit e34c49fd49
2 changed files with 10 additions and 5 deletions

View File

@ -51,7 +51,8 @@ describe("GameRoom", () => {
() => {},
() => {},
() => {},
emote
emote,
() => {}
);
const user1 = world.join(createMockUserSocket(), createJoinRoomMessage("1", 100, 100));
@ -86,7 +87,8 @@ describe("GameRoom", () => {
() => {},
() => {},
() => {},
emote
emote,
() => {}
);
const user1 = world.join(createMockUserSocket(), createJoinRoomMessage("1", 100, 100));
@ -125,7 +127,8 @@ describe("GameRoom", () => {
() => {},
() => {},
() => {},
emote
emote,
() => {}
);
const user1 = world.join(createMockUserSocket(), createJoinRoomMessage("1", 100, 100));

View File

@ -19,7 +19,8 @@ describe("PositionNotifier", () => {
moveTriggered = true;
}, (thing: Movable) => {
leaveTriggered = true;
}, () => {});
}, () => {},
() => {});
const user1 = new User(1, 'test', '10.0.0.2', {
x: 500,
@ -94,7 +95,8 @@ describe("PositionNotifier", () => {
moveTriggered = true;
}, (thing: Movable) => {
leaveTriggered = true;
}, () => {});
}, () => {},
() => {});
const user1 = new User(1, 'test', '10.0.0.2', {
x: 500,