From 100f297b02149079f3b09bfff267d32be1acb514 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 18 May 2015 14:51:06 +0300 Subject: [PATCH] Add noop connect* methods to the test backend --- src/backends/createTestBackend.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/backends/createTestBackend.js b/src/backends/createTestBackend.js index 25103c9..14d8f42 100644 --- a/src/backends/createTestBackend.js +++ b/src/backends/createTestBackend.js @@ -1,3 +1,5 @@ +import noop from 'lodash/utility/noop'; + class TestBackend { constructor(manager) { this.actions = manager.getActions(); @@ -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); }