Fix emit errors

This commit is contained in:
Tobias Skarhed
2018-07-27 15:16:19 +02:00
parent 2db4a54f75
commit 766c23a1eb
@@ -34,6 +34,9 @@ describe('GraphCtrl', () => {
beforeEach(() => {
ctx.ctrl = new GraphCtrl(scope, injector, {});
ctx.ctrl.events = {
emit: () => {},
};
ctx.ctrl.annotationsPromise = Promise.resolve({});
ctx.ctrl.updateTimeRange();
});