Skip to content

Commit

Permalink
Fix failing codemod test url-to-withrouter (#42109)
Browse files Browse the repository at this point in the history
This test was failing when running

```
cd ./packages/next-codemod
pnpm build
pnpm test
```
  • Loading branch information
styfle committed Oct 30, 2022
1 parent 676be08 commit d651e27
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,7 +1,7 @@
import { withRouter } from "next/router";

export default withRouter(class extends React.Component {
export default withRouter((class extends React.Component {
render() {
const test = this.props.router
}
});
}));

0 comments on commit d651e27

Please sign in to comment.