mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix tslint errors (#2097)
This commit is contained in:
committed by
Eugenio Romano
parent
9888223bec
commit
0c457d6988
@@ -89,21 +89,21 @@ describe('UploadDirective', () => {
|
||||
it('should prevent default event on drop', () => {
|
||||
directive.enabled = true;
|
||||
let event = jasmine.createSpyObj('event', ['preventDefault', 'stopPropagation']);
|
||||
directive.onDrop(<DragEvent>event);
|
||||
directive.onDrop(<DragEvent> event);
|
||||
expect(event.preventDefault).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should stop default event propagation on drop', () => {
|
||||
directive.enabled = true;
|
||||
let event = jasmine.createSpyObj('event', ['preventDefault', 'stopPropagation']);
|
||||
directive.onDrop(<DragEvent>event);
|
||||
directive.onDrop(<DragEvent> event);
|
||||
expect(event.stopPropagation).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should not prevent default event on drop when disabled', () => {
|
||||
directive.enabled = false;
|
||||
let event = jasmine.createSpyObj('event', ['preventDefault', 'stopPropagation']);
|
||||
directive.onDrop(<DragEvent>event);
|
||||
directive.onDrop(<DragEvent> event);
|
||||
expect(event.preventDefault).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user