beforeEach(function() { wrappedSpy = sinon.spy(); context.roomClient.sendNotification = function* () { wrappedSpy.apply(this, arguments); }; var gs = msgOps.getGameState(context.room.id); gs.currentOpenGame = true; gs.currentPlayers.push(helpers.getUserNotInGame(gs)); });
beforeEach(function() { wrappedSpy = sinon.spy(); context.roomClient.sendNotification = function* () { wrappedSpy.apply(this, arguments); }; });