Skip to content

Commit

Permalink
Prettier and Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
necolas committed Apr 1, 2019
1 parent 7be854c commit c21ba8d
Showing 1 changed file with 27 additions and 37 deletions.
64 changes: 27 additions & 37 deletions packages/react-events/src/__tests__/Press-test.internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ const createKeyboardEvent = (type, data) => {
});
};

function createSimpleResponder({responderProps, domProps}) {
return function Component() {
return (
<Press {...responderProps}>
<div {...domProps} />
</Press>
);
};
}

describe('Event responder: Press', () => {
let container;

Expand Down Expand Up @@ -322,33 +312,33 @@ describe('Event responder: Press', () => {

// TODO
//describe('`onPress*` with movement', () => {
//describe('within bounds of hit rect', () => {
/** ┌──────────────────┐
* │ ┌────────────┐ │
* │ │ VisualRect │ │
* │ └────────────┘ │
* │ HitRect X │ <= Move to X and release
* └──────────────────┘
*/

//it('"onPress*" events are called when no delay', () => {});
//it('"onPress*" events are called after a delay', () => {});
//});

//describe('beyond bounds of hit rect', () => {
/** ┌──────────────────┐
* │ ┌────────────┐ │
* │ │ VisualRect │ │
* │ └────────────┘ │
* │ HitRect │
* └──────────────────┘
* X <= Move to X and release
*/

//it('"onPress" only is not called when no delay', () => {});
//it('"onPress*" events are not called after a delay', () => {});
//it('"onPress*" events are called when press is released before measure completes', () => {});
//});
//describe('within bounds of hit rect', () => {
/** ┌──────────────────┐
* │ ┌────────────┐ │
* │ │ VisualRect │ │
* │ └────────────┘ │
* │ HitRect X │ <= Move to X and release
* └──────────────────┘
*/

//it('"onPress*" events are called when no delay', () => {});
//it('"onPress*" events are called after a delay', () => {});
//});

//describe('beyond bounds of hit rect', () => {
/** ┌──────────────────┐
* │ ┌────────────┐ │
* │ │ VisualRect │ │
* │ └────────────┘ │
* │ HitRect │
* └──────────────────┘
* X <= Move to X and release
*/

//it('"onPress" only is not called when no delay', () => {});
//it('"onPress*" events are not called after a delay', () => {});
//it('"onPress*" events are called when press is released before measure completes', () => {});
//});
//});

describe('nested responders', () => {
Expand Down

0 comments on commit c21ba8d

Please sign in to comment.