コード例 #1
0
 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));
 });
コード例 #2
0
 beforeEach(function() {
   wrappedSpy = sinon.spy();
   context.roomClient.sendNotification = function* () { wrappedSpy.apply(this, arguments); };
 });