From aa29a3c7915debe107443e9d2aec9b53d75e8026 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Sat, 19 Mar 2022 22:58:11 -0500 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Balázs Orbán --- packages/next/client/link.tsx | 2 +- test/integration/client-navigation/test/index.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/client/link.tsx b/packages/next/client/link.tsx index 98856261e77c..379d21123e15 100644 --- a/packages/next/client/link.tsx +++ b/packages/next/client/link.tsx @@ -233,7 +233,7 @@ function Link(props: React.PropsWithChildren) { } catch (err) { if (!children) { throw new Error( - `No children were pass to with \`href\` of \`${props.href}\` but one child is required https://nextjs.org/docs/messages/link-no-children` + `No children were passed to with \`href\` of \`${props.href}\` but one child is required https://nextjs.org/docs/messages/link-no-children` ) } throw new Error( diff --git a/test/integration/client-navigation/test/index.test.js b/test/integration/client-navigation/test/index.test.js index 92c5fbc66b22..b0fc4128bf95 100644 --- a/test/integration/client-navigation/test/index.test.js +++ b/test/integration/client-navigation/test/index.test.js @@ -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 with `href` of `/about` but one child is required' + 'No children were passed to with `href` of `/about` but one child is required' ) })