fix number of arguments to function call

This commit is contained in:
AlecM33
2022-12-17 15:12:23 -05:00
parent 6250f71819
commit 3b37585640
3 changed files with 14 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ describe('GameManager', () => {
beforeEach(() => {
spyOn(namespace, 'to').and.callThrough();
spyOn(socket, 'to').and.callThrough();
});
describe('#transferModerator', () => {
@@ -127,6 +128,7 @@ describe('GameManager', () => {
expect(personToTransferTo.userType).toEqual(USER_TYPES.MODERATOR);
expect(tempMod.userType).toEqual(USER_TYPES.MODERATOR);
expect(namespace.to).toHaveBeenCalledOnceWith(personToTransferTo.socketId);
expect(socket.to).toHaveBeenCalledWith(game.accessCode);
});
});