function componentPassesEvent(callbackName, id) {
    const navigator = new Navigator();
    const component = new NavigatorComponent({ navigator });
    const mockFunc = jest.fn();
    component[callbackName] = mockFunc;
    navigator.onNavigatorEvent({ id });
    expect(mockFunc).toHaveBeenCalledTimes(1);
  }
/**
   * @desc Common test that checks if component called specific function on specific event id.
   * @param {string} callbackName Name of callback function
   * @param {string} id Id of event.
   * @return {void}
   */
@desc Common test that checks if component called specific function on specific event id.
@param {string} callbackName Name of callback function
@param {string} id Id of event.
@return {void}
@desc Common test that checks if component called specific function on specific event id . @param { string } callbackName Name of callback function @param { string } id Id of event . @return { void }
function componentPassesEvent(callbackName, id) {
    const navigator = new Navigator();
    const component = new NavigatorComponent({ navigator });
    const mockFunc = jest.fn();
    component[callbackName] = mockFunc;
    navigator.onNavigatorEvent({ id });
    expect(mockFunc).toHaveBeenCalledTimes(1);
  }
function componentPassesEvent ( callbackName , id ) { const navigator = new Navigator ( ) ; const component = new NavigatorComponent ( { navigator } ) ; const mockFunc = jest . fn ( ) ; component [ callbackName ] = mockFunc ; navigator . onNavigatorEvent ( { id } ) ; expect ( mockFunc ) . toHaveBeenCalledTimes ( 1 ) ; }
@desc Common test that checks if component called specific function on specific event id.
@desc Common test that checks if component called specific function on specific event id .