Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Mar 2, 2022
1 parent 6aae1dc commit 8904ea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docusaurus/src/server/__tests__/brokenLinks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ describe('brokenLinks', () => {
const linkToJavadoc1 = '/javadoc';
const linkToJavadoc2 = '/javadoc/';
const linkToJavadoc3 = '/javadoc/index.html';
const linkToJavadoc4 = '/javadoc/index.html#foo';

const linkToZipFile = '/files/file.zip';
const linkToHtmlFile1 = '/files/hey.html';
Expand All @@ -168,6 +169,7 @@ describe('brokenLinks', () => {
linkToJavadoc1,
linkToHtmlFile2,
linkToJavadoc3,
linkToJavadoc4,
linkToEmptyFolder1,
],
'/page2': [
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus/src/server/brokenLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Frequent broken links are linking to:${frequentLinks}
}

return `Docusaurus found broken links!
Please check the pages of your site in the list below, and make sure you don't reference any path that does not exist.
Note: it's possible to ignore broken links with the 'onBrokenLinks' Docusaurus configuration, and let the build pass.${getLayoutBrokenLinksHelpMessage()}
Expand Down

0 comments on commit 8904ea6

Please sign in to comment.