Unverified Commit affbc158 authored by Jonathan Wu's avatar Jonathan Wu Committed by GitHub

Fix conflicting paths grammar (#29658)

parent 9c057851
...@@ -1054,7 +1054,7 @@ export function detectConflictingPaths( ...@@ -1054,7 +1054,7 @@ export function detectConflictingPaths(
}) })
Log.error( Log.error(
'Conflicting paths returned from getStaticPaths, paths must unique per page.\n' + 'Conflicting paths returned from getStaticPaths, paths must be unique per page.\n' +
'See more info here: https://nextjs.org/docs/messages/conflicting-ssg-paths\n\n' + 'See more info here: https://nextjs.org/docs/messages/conflicting-ssg-paths\n\n' +
conflictingPathsOutput conflictingPathsOutput
) )
......
...@@ -68,7 +68,7 @@ describe('Conflicting SSG paths', () => { ...@@ -68,7 +68,7 @@ describe('Conflicting SSG paths', () => {
}) })
const output = result.stdout + result.stderr const output = result.stdout + result.stderr
expect(output).toContain( expect(output).toContain(
'Conflicting paths returned from getStaticPaths, paths must unique per page' 'Conflicting paths returned from getStaticPaths, paths must be unique per page'
) )
expect(output).toContain( expect(output).toContain(
'https://nextjs.org/docs/messages/conflicting-ssg-paths' 'https://nextjs.org/docs/messages/conflicting-ssg-paths'
...@@ -121,7 +121,7 @@ describe('Conflicting SSG paths', () => { ...@@ -121,7 +121,7 @@ describe('Conflicting SSG paths', () => {
}) })
const output = result.stdout + result.stderr const output = result.stdout + result.stderr
expect(output).toContain( expect(output).toContain(
'Conflicting paths returned from getStaticPaths, paths must unique per page' 'Conflicting paths returned from getStaticPaths, paths must be unique per page'
) )
expect(output).toContain( expect(output).toContain(
'https://nextjs.org/docs/messages/conflicting-ssg-paths' 'https://nextjs.org/docs/messages/conflicting-ssg-paths'
...@@ -175,7 +175,7 @@ describe('Conflicting SSG paths', () => { ...@@ -175,7 +175,7 @@ describe('Conflicting SSG paths', () => {
}) })
const output = result.stdout + result.stderr const output = result.stdout + result.stderr
expect(output).toContain( expect(output).toContain(
'Conflicting paths returned from getStaticPaths, paths must unique per page' 'Conflicting paths returned from getStaticPaths, paths must be unique per page'
) )
expect(output).toContain( expect(output).toContain(
'https://nextjs.org/docs/messages/conflicting-ssg-paths' 'https://nextjs.org/docs/messages/conflicting-ssg-paths'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment