Skip to content

Commit 5796daf

Browse files
fix(test): deleted ts-ignore from .spec files
1 parent 2f025d7 commit 5796daf

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

libs/ng2-file-upload/testing/spec/file-drop.directive.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ describe('Directive: FileDropDirective', () => {
7676
});
7777

7878
it('handles drop event', () => {
79-
//@ts-ignore
8079
const drop = jest.spyOn(fileDropDirective, 'onDrop');
8180
directiveElement.triggerEventHandler('drop', getFakeEventData());
8281

@@ -86,7 +85,6 @@ describe('Directive: FileDropDirective', () => {
8685
it('adds file to upload', () => {
8786
let addToQueue;
8887
if (fileDropDirective.uploader?.addToQueue) {
89-
//@ts-ignore
9088
addToQueue = jest.spyOn(fileDropDirective.uploader, 'addToQueue');
9189
}
9290

@@ -106,7 +104,6 @@ describe('Directive: FileDropDirective', () => {
106104
});
107105

108106
it('handles dragover event', () => {
109-
//@ts-ignore
110107
jest.spyOn(fileDropDirective, 'onDragOver');
111108

112109
directiveElement.triggerEventHandler('dragover', getFakeEventData());
@@ -124,7 +121,6 @@ describe('Directive: FileDropDirective', () => {
124121
});
125122

126123
it('handles dragleave event', () => {
127-
//@ts-ignore
128124
jest.spyOn(fileDropDirective, 'onDragLeave');
129125

130126
directiveElement.triggerEventHandler('dragleave', getFakeEventData());

libs/ng2-file-upload/testing/spec/file-select.directive.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ describe('Directive: FileSelectDirective', () => {
8282
});
8383

8484
it('can listed on change event', () => {
85-
//@ts-ignore
8685
const change = jest.spyOn(fileSelectDirective, 'onChange');
8786

8887
directiveElement.triggerEventHandler('change', {});
@@ -93,7 +92,6 @@ describe('Directive: FileSelectDirective', () => {
9392
it('handles change event', () => {
9493
let addToQueue;
9594
if (fileSelectDirective.uploader?.addToQueue) {
96-
//@ts-ignore
9795
addToQueue = jest.spyOn(fileSelectDirective.uploader, 'addToQueue');
9896
}
9997
fileSelectDirective.onChange();

0 commit comments

Comments
 (0)