Skip to content

Commit

Permalink
fix: test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rtablada committed Jul 11, 2024
1 parent 67f8e34 commit fc0a859
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Empty file added fixtures/discover/c/index.md
Empty file.
6 changes: 5 additions & 1 deletion src/plugins/markdown-pages/sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ Actual: ${JSON.stringify(list.map(find))}`);
result.push(found);
}

result.push(...remaining);
if (remaining.length > 0) {
throw new Error(
`Order configuration did not specify all pages. Remaining pages are ${JSON.stringify(remaining.map(find))}`
);
}

return result;
}
Expand Down

0 comments on commit fc0a859

Please sign in to comment.