mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
fix test
This commit is contained in:
@@ -152,8 +152,6 @@ describe('InfoDrawerComponent', () => {
|
||||
}));
|
||||
|
||||
it('should dispatch close panel on Esc keyboard event', () => {
|
||||
const nodeMock = <any>{ entry: { id: 'nodeId', aspectNames: [] } };
|
||||
component.node = nodeMock;
|
||||
const event = new KeyboardEvent('keydown', {
|
||||
code: 'Escape',
|
||||
key: 'Escape',
|
||||
@@ -161,7 +159,6 @@ describe('InfoDrawerComponent', () => {
|
||||
} as KeyboardEventInit);
|
||||
|
||||
fixture.detectChanges();
|
||||
component.ngOnChanges();
|
||||
|
||||
fixture.debugElement.nativeElement.dispatchEvent(event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user