From 5796dafdfb7e7d5b0df7774a435d49387099ac20 Mon Sep 17 00:00:00 2001 From: SvetlanaMuravlova Date: Thu, 22 Sep 2022 10:11:40 +0300 Subject: [PATCH] fix(test): deleted ts-ignore from .spec files --- libs/ng2-file-upload/testing/spec/file-drop.directive.spec.ts | 4 ---- .../testing/spec/file-select.directive.spec.ts | 2 -- 2 files changed, 6 deletions(-) diff --git a/libs/ng2-file-upload/testing/spec/file-drop.directive.spec.ts b/libs/ng2-file-upload/testing/spec/file-drop.directive.spec.ts index 3bfcca1..0635f9a 100644 --- a/libs/ng2-file-upload/testing/spec/file-drop.directive.spec.ts +++ b/libs/ng2-file-upload/testing/spec/file-drop.directive.spec.ts @@ -76,7 +76,6 @@ describe('Directive: FileDropDirective', () => { }); it('handles drop event', () => { - //@ts-ignore const drop = jest.spyOn(fileDropDirective, 'onDrop'); directiveElement.triggerEventHandler('drop', getFakeEventData()); @@ -86,7 +85,6 @@ describe('Directive: FileDropDirective', () => { it('adds file to upload', () => { let addToQueue; if (fileDropDirective.uploader?.addToQueue) { - //@ts-ignore addToQueue = jest.spyOn(fileDropDirective.uploader, 'addToQueue'); } @@ -106,7 +104,6 @@ describe('Directive: FileDropDirective', () => { }); it('handles dragover event', () => { - //@ts-ignore jest.spyOn(fileDropDirective, 'onDragOver'); directiveElement.triggerEventHandler('dragover', getFakeEventData()); @@ -124,7 +121,6 @@ describe('Directive: FileDropDirective', () => { }); it('handles dragleave event', () => { - //@ts-ignore jest.spyOn(fileDropDirective, 'onDragLeave'); directiveElement.triggerEventHandler('dragleave', getFakeEventData()); diff --git a/libs/ng2-file-upload/testing/spec/file-select.directive.spec.ts b/libs/ng2-file-upload/testing/spec/file-select.directive.spec.ts index 0424636..61df8f2 100644 --- a/libs/ng2-file-upload/testing/spec/file-select.directive.spec.ts +++ b/libs/ng2-file-upload/testing/spec/file-select.directive.spec.ts @@ -82,7 +82,6 @@ describe('Directive: FileSelectDirective', () => { }); it('can listed on change event', () => { - //@ts-ignore const change = jest.spyOn(fileSelectDirective, 'onChange'); directiveElement.triggerEventHandler('change', {}); @@ -93,7 +92,6 @@ describe('Directive: FileSelectDirective', () => { it('handles change event', () => { let addToQueue; if (fileSelectDirective.uploader?.addToQueue) { - //@ts-ignore addToQueue = jest.spyOn(fileSelectDirective.uploader, 'addToQueue'); } fileSelectDirective.onChange();