Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
fix: Fixed not checking if dragTo is a valid element
Browse files Browse the repository at this point in the history
  • Loading branch information
viralpickaxe committed Nov 28, 2017
1 parent a9c5eed commit 13566a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests-api/actions-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = class ActionsBuilder {
throw new TypeError('.dragAndDrop() "element" argument should be valid element or CSS selector');
}

if (isInvalidElement(element)) {
if (isInvalidElement(dragTo)) {
throw new TypeError('.dragAndDrop() "dragTo" argument should be valid element or CSS selector');
}

Expand Down

0 comments on commit 13566a1

Please sign in to comment.