Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

Commit

Permalink
Add noop connect* methods to the test backend
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed May 18, 2015
1 parent f6d69dd commit 100f297
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/backends/createTestBackend.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import noop from 'lodash/utility/noop';

class TestBackend {
constructor(manager) {
this.actions = manager.getActions();
Expand All @@ -11,6 +13,18 @@ class TestBackend {
this.didCallTeardown = true;
}

connectDragSource() {
return noop;
}

connectDragPreview() {
return noop;
}

connectDropTarget() {
return noop;
}

simulateBeginDrag(sourceIds, options) {
this.actions.beginDrag(sourceIds, options);
}
Expand Down

0 comments on commit 100f297

Please sign in to comment.