Skip to content

Commit

Permalink
fix: rename placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Mar 18, 2019
1 parent 3507be6 commit f8cf982
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "test-hooks",
"version": "1.1.1",
"description": "",
"keywords": [],
"keywords": [ "hooks", "react-hooks", "test"],
"main": "dist/lib/test-hooks.js",
"module": "dist/lib/test-hooks.js",
"typings": "dist/types/test-hooks.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/test-hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { render, act, cleanup } from 'react-testing-library'

export default function testHooks<T>(wrapper: () => T) {
let hooks: T;
function HooksContinuationPlaceholder() {
function HooksPlaceholder() {
hooks = wrapper();
return <div />;
}

act(() => {
render(<HooksContinuationPlaceholder />);
render(<HooksPlaceholder />);
});

return {
Expand Down

0 comments on commit f8cf982

Please sign in to comment.