Skip to content

Commit 720498c

Browse files
committed
update: PageSeries.test 수정
1 parent 7c01070 commit 720498c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/notion/page/getPageSeries/__test__/PageSeries.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import mockNotionPageRelation from '@/mocks/notionPageRelation';
55
import mockNotionPageRollup from '@/mocks/notionPageRollup';
66
import PageSeries from '../PageSeries';
77

8+
jest.mock('notion-utils', () => ({
9+
getPageTitle: jest.fn(),
10+
parsePageId: jest.fn((id: string) => id)
11+
}));
12+
813
jest.mock('@/lib/notion/config', () => ({
914
notionClient: { getPage: jest.fn() },
1015
notionHqClient: {
@@ -18,7 +23,7 @@ jest.mock('@/lib/notion/config', () => ({
1823

1924
class TestPageSeries extends PageSeries {
2025
constructor() {
21-
super('TEST_PAGE_ID');
26+
super('a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6');
2227
}
2328
get hasSeries() {
2429
return this._hasSeries;

0 commit comments

Comments
 (0)