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