81901: Fix OnClickMenuItemComponent unit test

This commit is contained in:
Yura Bondarenko
2021-08-20 18:24:32 +02:00
parent 3c4f3e9104
commit 9cb8a77bf8

View File

@@ -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();
}); });
}); });