We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b03be commit efbe99dCopy full SHA for efbe99d
packages/gitbook/src/lib/pages.test.ts
@@ -1,7 +1,7 @@
1
import { describe, expect, it } from 'bun:test';
2
import type { RevisionPage } from '@gitbook/api';
3
4
-import { resolveFirstDocument, resolvePagePath } from './pages';
+import { resolveFirstDocument, resolvePagePath, resolvePagePathDocumentOrGroup } from './pages';
5
6
describe('resolveFirstDocument', () => {
7
it('should go into the first group', () => {
@@ -196,7 +196,7 @@ describe('resolvePagePath', () => {
196
},
197
];
198
199
- const page = resolvePagePath(pages, 'sales');
+ const page = resolvePagePathDocumentOrGroup(pages, 'sales');
200
expect(page).toMatchObject({
201
ancestors: [],
202
page: {
0 commit comments