mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
clean unit tests core part 2 (#4897)
* promote use setupTestbed * fix context menu unit test * fix sidebar warning unit test * fix spy people widget * fix ISO warning date time widget * fix sidebar spy 404 url * minor karma fix import pdf.js map * restore md * revert extension change
This commit is contained in:
@@ -80,7 +80,7 @@ export class ContextMenuHolderComponent implements OnInit, OnDestroy {
|
||||
this.subscriptions.push(
|
||||
this.contextMenuService.show.subscribe((mouseEvent) => this.showMenu(mouseEvent.event, mouseEvent.obj)),
|
||||
|
||||
this.menuTrigger.onMenuOpen.subscribe(() => {
|
||||
this.menuTrigger.menuOpened.subscribe(() => {
|
||||
const container = this.overlayContainer.getContainerElement();
|
||||
if (container) {
|
||||
this.contextMenuListenerFn = this.renderer.listen(container, 'contextmenu', (contextmenuEvent: Event) => {
|
||||
@@ -90,7 +90,7 @@ export class ContextMenuHolderComponent implements OnInit, OnDestroy {
|
||||
this.menuElement = this.getContextMenuElement();
|
||||
}),
|
||||
|
||||
this.menuTrigger.onMenuClose.subscribe(() => {
|
||||
this.menuTrigger.menuClosed.subscribe(() => {
|
||||
this.menuElement = null;
|
||||
if (this.contextMenuListenerFn) {
|
||||
this.contextMenuListenerFn();
|
||||
|
Reference in New Issue
Block a user