fix(test): deleted ts-ignore from .spec files

This commit is contained in:
SvetlanaMuravlova
2022-09-22 10:11:40 +03:00
parent 2f025d7c14
commit 5796dafdfb
2 changed files with 0 additions and 6 deletions

View File

@@ -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());

View File

@@ -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();