Skip to content

Commit

Permalink
Various tidyings from code review
Browse files Browse the repository at this point in the history
Co-authored-by: devin ivy <devin@bigroomstudios.com>
  • Loading branch information
zemccartney and devinivy committed Jun 17, 2020
1 parent 9af8229 commit db353fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function App ({ props }) {
}
```

#### `useMiddleEnd`
#### `useMiddleEnd()`

Hook that returns the current middle-end as contextualized by the nearest parent `Provider`.
Follows the same rendering logic as [React's built-in `useContext`](https://reactjs.org/docs/hooks-reference.html#usecontext).
Expand All @@ -218,4 +218,4 @@ function Counter ({ props }) {
</div>
)
}
```
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"redux-thunk": "2.x.x",
"immer": ">=1 <7",
"normalizr": "3.x.x",
"react": ">= 16.8.x"
"react": ">=16.8.x <17"
},
"devDependencies": {
"@babel/core": "7.x.x",
Expand Down
2 changes: 1 addition & 1 deletion test/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('React', () => {
}
});

expect(result.current).to.equal(middleEnd);
expect(result.current).to.shallow.equal(middleEnd);

TestingHooks.act(() => {

Expand Down

0 comments on commit db353fc

Please sign in to comment.