mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
refactor game state curator
This commit is contained in:
@@ -222,7 +222,7 @@ describe('GameManager', () => {
|
||||
);
|
||||
|
||||
expect(GameStateCurator.getGameStateFromPerspectiveOfPerson)
|
||||
.toHaveBeenCalledWith(gameRunner.activeGames.get('abc'), player, gameRunner, socket, logger);
|
||||
.toHaveBeenCalledWith(gameRunner.activeGames.get('abc'), player);
|
||||
});
|
||||
|
||||
it('should send the game state to a matching person who reset their connection', () => {
|
||||
@@ -243,7 +243,7 @@ describe('GameManager', () => {
|
||||
);
|
||||
|
||||
expect(GameStateCurator.getGameStateFromPerspectiveOfPerson)
|
||||
.toHaveBeenCalledWith(gameRunner.activeGames.get('abc'), player, gameRunner, socket, logger);
|
||||
.toHaveBeenCalledWith(gameRunner.activeGames.get('abc'), player);
|
||||
expect(player.socketId).toEqual(socket.id);
|
||||
expect(socket.join).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user