All files / app/assets/javascripts/sidebar event_hub.js

66.67% Statements 2/3
100% Branches 0/0
0% Functions 0/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9    73x     73x      
import createEventHub from '~/helpers/event_hub_factory';
 
const eventHub = createEventHub();
 
// TODO: remove eventHub hack after code splitting refactor
window.emitSidebarEvent = (...args) => eventHub.$emit(...args);
 
export default eventHub;