Skip to content

Commit c5b2f5c

Browse files
committed
Take the spy off the eventBus after trigger
1 parent 48967c0 commit c5b2f5c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/unit/test/streaming/streaming.controllers.StreamController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ describe('StreamController', function () {
211211
eventBus.on(Events.STREAM_TEARDOWN_COMPLETE, spy);
212212

213213
eventBus.trigger(Events.MANIFEST_UPDATED, { error: {} });
214+
eventBus.off(Events.STREAM_TEARDOWN_COMPLETE, spy);
214215
expect(spy).to.have.been.called.exactly(1);
215216
});
216217
});

0 commit comments

Comments
 (0)