Fixes bad indentation issue

Removes refernces to the test backend from the html5 backend tests -
the two backends are distinct so it doesn't make sense to test one
inside the other
This commit is contained in:
David Inglis
2016-07-25 16:42:36 -07:00
parent b18345f63e
commit 51f709d4df
2 changed files with 12 additions and 20 deletions

View File

@@ -14,8 +14,6 @@ import DropTarget = ReactDnd.DropTarget;
import DragLayer = ReactDnd.DragLayer;
import DragDropContext = ReactDnd.DragDropContext;
import HTML5Backend, { getEmptyImage } from 'react-dnd-html5-backend';
import TestBackend = require('react-dnd/modules/backends/Test');
// Game Component
// ----------------------------------------------------------------------
@@ -285,7 +283,6 @@ namespace Board {
}
export var createWithHTMLBackend = React.createFactory(DragDropContext(HTML5Backend)(Board));
export var createWithTestBackend = React.createFactory(DragDropContext(TestBackend)(Board));
}
// Render the Board Component
@@ -294,8 +291,3 @@ namespace Board {
Board.createWithHTMLBackend({
knightPosition: [0, 0]
});
Board.createWithTestBackend({
knightPosition: [0, 0]
});

View File

@@ -6,17 +6,17 @@
///<reference path='./react-dnd.d.ts' />
declare module "react-dnd-test-backend" {
class TestBackend {
setup(): void;
teardown(): void;
connectDragSource(): void;
connectDropTarget(): void;
simulateBeginDrag(sourceIds: __ReactDnd.Identifier[], options?: {}): void;
simulatePublishDragSource(): void;
simulateHover(targetIds: __ReactDnd.Identifier[], options?: {}): void;
simulateDrop(): void;
simulateEndDrag(): void;
}
class TestBackend {
setup(): void;
teardown(): void;
connectDragSource(): void;
connectDropTarget(): void;
simulateBeginDrag(sourceIds: __ReactDnd.Identifier[], options?: {}): void;
simulatePublishDragSource(): void;
simulateHover(targetIds: __ReactDnd.Identifier[], options?: {}): void;
simulateDrop(): void;
simulateEndDrag(): void;
}
export { TestBackend as default };
export { TestBackend as default };
}