mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
81901: Fix OnClickMenuItemComponent unit test
This commit is contained in:
@@ -44,8 +44,8 @@ describe('OnClickMenuItemComponent', () => {
|
||||
expect(textContent).toEqual(text);
|
||||
});
|
||||
|
||||
it('should contain call the function on the item when clicked', () => {
|
||||
debugElement.query(By.css('a.nav-link')).triggerEventHandler('click', {});
|
||||
it('should call the function on the item when clicked', () => {
|
||||
debugElement.query(By.css('a.nav-link')).triggerEventHandler('click', new Event(('click')));
|
||||
expect(item.function).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user