Skip to content

Commit

Permalink
test: get page test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Feb 17, 2023
1 parent 94fd61d commit 0adb047
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/notion/BlockHandler/BlockHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ beforeEach(() => {

describe('BlockHandler', () => {
test('Get Notion Page', async () => {
const page = await api.getPage('699392e9387846e3a729206a126bf787');
const page = await api.getPage('446d09aa05d041058c16e56232188e2b');
const title = await api.getPageTitle(page, new Settings({}));
expect(title).toBe('Notion API Test Page');
expect(title).toBe('Testing');
});

test('Get Blocks', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"object":"page","id":"446d09aa-05d0-4105-8c16-e56232188e2b","created_time":"2022-12-27T12:15:00.000Z","last_edited_time":"2022-12-27T12:19:00.000Z","created_by":{"object":"user","id":"1590db54-99fe-467c-a656-be319fe6ca8b"},"last_edited_by":{"object":"user","id":"1590db54-99fe-467c-a656-be319fe6ca8b"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"7ccef4f6-b50c-4599-878e-f6fb61415ce2"},"archived":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Testing","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Testing","href":null}]}},"url":"https://www.notion.so/Testing-446d09aa05d041058c16e56232188e2b"}

0 comments on commit 0adb047

Please sign in to comment.