Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandrichardson committed Aug 15, 2017
1 parent f85156d commit 95950fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/adapters/ReactSixteenAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ class ReactSixteenAdapter extends EnzymeAdapter {
simulateEvent(node, event, ...args) {
const handler = node.props[propFromEvent(event)];
if (handler) {
// withSetStateAllowed(() => {
withSetStateAllowed(() => {
// TODO(lmr): create/use synthetic events
// TODO(lmr): emulate React's event propagation
// ReactDOM.unstable_batchedUpdates(() => {
handler(...args);
handler(...args);
// });
// });
});
}
},
batchedUpdates(fn) {
Expand Down
6 changes: 3 additions & 3 deletions test/Debug-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ describe('debug', () => {
}

expect(debugNodes(shallow(<Foo />).getNodesInternal())).to.eql(
`<div className="foo">
`<div className="foo">
<span>
inside Foo
</span>
Expand Down Expand Up @@ -543,7 +543,7 @@ describe('debug', () => {
}

expect(debugNodes(shallow(<Bar />).children().getElements())).to.eql(
`<Foo />
`<Foo />
<Foo />
Expand All @@ -567,7 +567,7 @@ describe('debug', () => {
}

expect(debugNodes(shallow(<Foo />).children().getNodesInternal())).to.eql(
`<span>
`<span>
span1 text
</span>
Expand Down

0 comments on commit 95950fa

Please sign in to comment.