Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#231 feature/refactor is drop image from file to utils file and add unit testing #400

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

El-Mito-de-Giralda
Copy link
Collaborator

Closed #231

@@ -16,13 +17,6 @@ export const useDropImageFromDesktop = (

// TODO: #231 move this to utils / business
// https://github.com/Lemoncode/quickmock/issues/231
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete comments please

} as unknown as React.DragEvent<HTMLDivElement>;

//Act
isDropImageFile(mockDatatransfer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a const wit the value of the function, and you use it on expect

} as unknown as React.DragEvent<HTMLDivElement>;

//Act
isDropImageFile(mockDatatransfer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a const wit the value of the function, and you use it on expect

} as unknown as React.DragEvent<HTMLDivElement>;

//Act
isDropImageFile(mockDatatransfer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a const wit the value of the function, and you use it on expect

} as unknown as React.DragEvent<HTMLDivElement>;

//Act
isDropImageFile(mockDatatransfer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a const wit the value of the function, and you use it on expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor isDropImageFrom file to utils file and add unit testing
2 participants