Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Balázs Orbán <info@balazsorban.com>
  • Loading branch information
ijjk and balazsorban44 committed Mar 20, 2022
1 parent 2c6a856 commit aa29a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/client/link.tsx
Expand Up @@ -233,7 +233,7 @@ function Link(props: React.PropsWithChildren<LinkProps>) {
} catch (err) {
if (!children) {
throw new Error(
`No children were pass to <Link> with \`href\` of \`${props.href}\` but one child is required https://nextjs.org/docs/messages/link-no-children`
`No children were passed to <Link> with \`href\` of \`${props.href}\` but one child is required https://nextjs.org/docs/messages/link-no-children`
)
}
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion test/integration/client-navigation/test/index.test.js
Expand Up @@ -64,7 +64,7 @@ describe('Client Navigation', () => {
const browser = await webdriver(context.appPort, '/link-no-child')
expect(await hasRedbox(browser, true)).toBe(true)
expect(await getRedboxHeader(browser)).toContain(
'No children were pass to <Link> with `href` of `/about` but one child is required'
'No children were passed to <Link> with `href` of `/about` but one child is required'
)
})

Expand Down

0 comments on commit aa29a3c

Please sign in to comment.