提交 17f6fa96 编写于 作者: Y Yuki Takemoto 提交者: Tim Neutkens

Fix broken link (#7378)

上级 12f4c718
......@@ -295,7 +295,7 @@ export async function renderToHTML(
if (dev && (props.router || props.Component)) {
throw new Error(
`'router' and 'Component' can not be returned in getInitialProps from _app.js https://err.sh/zeit/next.js/cant-override-next-props.md`,
`'router' and 'Component' can not be returned in getInitialProps from _app.js https://err.sh/zeit/next.js/cant-override-next-props`,
)
}
}
......
......@@ -22,6 +22,6 @@ describe('Dynamic require', () => {
it('should show error when a Next prop is returned in _app.getInitialProps', async () => {
const html = await renderViaHTTP(appPort, '/')
expect(html).toMatch(/https:\/\/err\.sh\/zeit\/next\.js\/cant-override-next-props\.md/)
expect(html).toMatch(/https:\/\/err\.sh\/zeit\/next\.js\/cant-override-next-props/)
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册