mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-05 09:40:02 +00:00
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:
@@ -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]
|
||||
});
|
||||
|
||||
24
react-dnd/react-dnd-test-backend.d.ts
vendored
24
react-dnd/react-dnd-test-backend.d.ts
vendored
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user