Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
usulpro authored and danielduan committed Nov 15, 2017
1 parent 2ef57f4 commit 96daaa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/channels/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ describe('Channel', () => {
expect(received).toEqual([11, 12]);
});

it('should ignore if event handled by onPeer', () => {
it('should ignore if event handled by addPeerListener', () => {
const received = [];
channel.addPeerListener('type-1', n => received.push(n));
channel._handleEvent({ type: 'type-1', args: [11], from: channel._sender });
channel._handleEvent({ type: 'type-1', args: [12], from: channel._sender + '_'});
channel._handleEvent({ type: 'type-1', args: [12], from: '_'});
expect(received).toEqual([12]);
});
});
Expand Down

0 comments on commit 96daaa8

Please sign in to comment.