1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const noop = require('lodash/noop');
|
4 | class TestBackendImpl {
|
5 | constructor(manager) {
|
6 | this.didCallSetup = false;
|
7 | this.didCallTeardown = false;
|
8 | this.actions = manager.getActions();
|
9 | }
|
10 | setup() {
|
11 | this.didCallSetup = true;
|
12 | }
|
13 | teardown() {
|
14 | this.didCallTeardown = true;
|
15 | }
|
16 | connectDragSource() {
|
17 | return noop;
|
18 | }
|
19 | connectDragPreview() {
|
20 | return noop;
|
21 | }
|
22 | connectDropTarget() {
|
23 | return noop;
|
24 | }
|
25 | simulateBeginDrag(sourceIds, options) {
|
26 | this.actions.beginDrag(sourceIds, options);
|
27 | }
|
28 | simulatePublishDragSource() {
|
29 | this.actions.publishDragSource();
|
30 | }
|
31 | simulateHover(targetIds, options) {
|
32 | this.actions.hover(targetIds, options);
|
33 | }
|
34 | simulateDrop() {
|
35 | this.actions.drop();
|
36 | }
|
37 | simulateEndDrag() {
|
38 | this.actions.endDrag();
|
39 | }
|
40 | }
|
41 | exports.default = TestBackendImpl;
|