fix(test): deleted ts-ignore from .spec files
This commit is contained in:
@@ -76,7 +76,6 @@ describe('Directive: FileDropDirective', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('handles drop event', () => {
|
it('handles drop event', () => {
|
||||||
//@ts-ignore
|
|
||||||
const drop = jest.spyOn(fileDropDirective, 'onDrop');
|
const drop = jest.spyOn(fileDropDirective, 'onDrop');
|
||||||
directiveElement.triggerEventHandler('drop', getFakeEventData());
|
directiveElement.triggerEventHandler('drop', getFakeEventData());
|
||||||
|
|
||||||
@@ -86,7 +85,6 @@ describe('Directive: FileDropDirective', () => {
|
|||||||
it('adds file to upload', () => {
|
it('adds file to upload', () => {
|
||||||
let addToQueue;
|
let addToQueue;
|
||||||
if (fileDropDirective.uploader?.addToQueue) {
|
if (fileDropDirective.uploader?.addToQueue) {
|
||||||
//@ts-ignore
|
|
||||||
addToQueue = jest.spyOn(fileDropDirective.uploader, 'addToQueue');
|
addToQueue = jest.spyOn(fileDropDirective.uploader, 'addToQueue');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,7 +104,6 @@ describe('Directive: FileDropDirective', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('handles dragover event', () => {
|
it('handles dragover event', () => {
|
||||||
//@ts-ignore
|
|
||||||
jest.spyOn(fileDropDirective, 'onDragOver');
|
jest.spyOn(fileDropDirective, 'onDragOver');
|
||||||
|
|
||||||
directiveElement.triggerEventHandler('dragover', getFakeEventData());
|
directiveElement.triggerEventHandler('dragover', getFakeEventData());
|
||||||
@@ -124,7 +121,6 @@ describe('Directive: FileDropDirective', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('handles dragleave event', () => {
|
it('handles dragleave event', () => {
|
||||||
//@ts-ignore
|
|
||||||
jest.spyOn(fileDropDirective, 'onDragLeave');
|
jest.spyOn(fileDropDirective, 'onDragLeave');
|
||||||
|
|
||||||
directiveElement.triggerEventHandler('dragleave', getFakeEventData());
|
directiveElement.triggerEventHandler('dragleave', getFakeEventData());
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ describe('Directive: FileSelectDirective', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('can listed on change event', () => {
|
it('can listed on change event', () => {
|
||||||
//@ts-ignore
|
|
||||||
const change = jest.spyOn(fileSelectDirective, 'onChange');
|
const change = jest.spyOn(fileSelectDirective, 'onChange');
|
||||||
|
|
||||||
directiveElement.triggerEventHandler('change', {});
|
directiveElement.triggerEventHandler('change', {});
|
||||||
@@ -93,7 +92,6 @@ describe('Directive: FileSelectDirective', () => {
|
|||||||
it('handles change event', () => {
|
it('handles change event', () => {
|
||||||
let addToQueue;
|
let addToQueue;
|
||||||
if (fileSelectDirective.uploader?.addToQueue) {
|
if (fileSelectDirective.uploader?.addToQueue) {
|
||||||
//@ts-ignore
|
|
||||||
addToQueue = jest.spyOn(fileSelectDirective.uploader, 'addToQueue');
|
addToQueue = jest.spyOn(fileSelectDirective.uploader, 'addToQueue');
|
||||||
}
|
}
|
||||||
fileSelectDirective.onChange();
|
fileSelectDirective.onChange();
|
||||||
|
|||||||
Reference in New Issue
Block a user