Skip to content

Commit efbe99d

Browse files
committed
Fix test
1 parent 47b03be commit efbe99d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gitbook/src/lib/pages.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, expect, it } from 'bun:test';
22
import type { RevisionPage } from '@gitbook/api';
33

4-
import { resolveFirstDocument, resolvePagePath } from './pages';
4+
import { resolveFirstDocument, resolvePagePath, resolvePagePathDocumentOrGroup } from './pages';
55

66
describe('resolveFirstDocument', () => {
77
it('should go into the first group', () => {
@@ -196,7 +196,7 @@ describe('resolvePagePath', () => {
196196
},
197197
];
198198

199-
const page = resolvePagePath(pages, 'sales');
199+
const page = resolvePagePathDocumentOrGroup(pages, 'sales');
200200
expect(page).toMatchObject({
201201
ancestors: [],
202202
page: {

0 commit comments

Comments
 (0)