Skip to content

Commit

Permalink
fixing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekbh authored Aug 31, 2021
1 parent 9d97df6 commit 751f71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/eslint-plugin-next/no-html-link-for-pages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Blah extends Head {
render() {
return (
<div>
<a href='/list/blah'>Homepage</a>
<a href='/list/foo/bar'>Homepage</a>
<h1>Hello title</h1>
</div>
);
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('no-html-link-for-pages', function () {
assert.notEqual(report, undefined, 'No lint errors found.')
assert.equal(
report.message,
"Do not use the HTML <a> tag to navigate to /list/blah/. Use Link from 'next/link' instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages."
"Do not use the HTML <a> tag to navigate to /list/goo/bar. Use Link from 'next/link' instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages."
)
})
})

0 comments on commit 751f71f

Please sign in to comment.