Skip to content

Commit 9f9d6b0

Browse files
committed
fix
1 parent 669f644 commit 9f9d6b0

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/unit/lib/subscribers/base.test.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -162,27 +162,6 @@ test('should touch segment when asyncEnd is called', (t, end) => {
162162
})
163163
})
164164

165-
test('invalid events should not throw an error', (t) => {
166-
const { subscriber } = t.nr
167-
subscriber.start = () => {}
168-
subscriber.end = () => {}
169-
subscriber.events = null
170-
subscriber.subscribe()
171-
assert.equal(subscriber.channel.start.hasSubscribers, false)
172-
assert.equal(subscriber.channel.end.hasSubscribers, false)
173-
})
174-
175-
test('events with no handler should not throw an error', (t) => {
176-
const { subscriber } = t.nr
177-
subscriber.end = () => {}
178-
subscriber.events = ['start', 'end']
179-
subscriber.subscribe()
180-
assert.equal(subscriber.channel.start.hasSubscribers, false)
181-
assert.equal(subscriber.channel.end.hasSubscribers, true)
182-
assert.ok(!subscriber.subscriptions.start)
183-
assert.ok(subscriber.subscriptions.end)
184-
})
185-
186165
test('should subscribe/unsubscribe to specific events on channel', (t) => {
187166
const { subscriber } = t.nr
188167
subscriber.bogus = () => {}

0 commit comments

Comments
 (0)