From 96daaa859f20844e9ea098a4ebc78945b9cd1be9 Mon Sep 17 00:00:00 2001 From: Oleg Proskurin Date: Thu, 21 Sep 2017 23:30:14 +0300 Subject: [PATCH] Fix linting --- lib/channels/src/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/channels/src/index.test.js b/lib/channels/src/index.test.js index b5bc2670dc4f..96151d0f70e5 100644 --- a/lib/channels/src/index.test.js +++ b/lib/channels/src/index.test.js @@ -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]); }); });