1

你见过这样写的茉莉花规格吗?

describe('#removeAllListeners', function () {

it('should not call after removing listeners for an event', function () {
  socket.on('event', spy);
  socket.removeAllListeners('event');

  mockIoSocket.emit('event');

  expect($browser.deferredFns.length).toBe(0);
});
4

0 回答 0