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]); }); });