We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c01070 commit 720498cCopy full SHA for 720498c
1 file changed
lib/notion/page/getPageSeries/__test__/PageSeries.test.ts
@@ -5,6 +5,11 @@ import mockNotionPageRelation from '@/mocks/notionPageRelation';
5
import mockNotionPageRollup from '@/mocks/notionPageRollup';
6
import PageSeries from '../PageSeries';
7
8
+jest.mock('notion-utils', () => ({
9
+ getPageTitle: jest.fn(),
10
+ parsePageId: jest.fn((id: string) => id)
11
+}));
12
+
13
jest.mock('@/lib/notion/config', () => ({
14
notionClient: { getPage: jest.fn() },
15
notionHqClient: {
@@ -18,7 +23,7 @@ jest.mock('@/lib/notion/config', () => ({
18
23
19
24
class TestPageSeries extends PageSeries {
20
25
constructor() {
21
- super('TEST_PAGE_ID');
26
+ super('a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6');
22
27
}
28
get hasSeries() {
29
return this._hasSeries;
0 commit comments