()
| 9 | |
| 10 | describe('subscribe to new channel', () => { |
| 11 | function createAndSubscribe() { |
| 12 | const pubSub = new PubSub(CLIENT_ID), |
| 13 | command = pubSub.subscribe(TYPE, CHANNEL, LISTENER); |
| 14 | |
| 15 | assert.equal(pubSub.isActive, true); |
| 16 | assert.ok(command); |
| 17 | assert.equal(command.channelsCounter, 1); |
| 18 | |
| 19 | return { |
| 20 | pubSub, |
| 21 | command |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | it('resolve', () => { |
| 26 | const { pubSub, command } = createAndSubscribe(); |
no test coverage detected