Skip to content

Commit d429d9a

Browse files
committed
fix: logging and increased timout
1 parent 936c276 commit d429d9a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/nclient/src/notion-api.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ for (const pageId of pageIdFixturesSuccess)
2828
for (const pageId of pageIdFixturesFailure)
2929
test.concurrent(`NotionAPI.getPage failure ${pageId}`, async () => {
3030
const api = new NotionAPI()
31-
await expect(() => api.getPage(pageId, { fetchOption: { timeout: 1000 } })).rejects.toThrow()
31+
await expect(() => api.getPage(pageId, { fetchOption: { timeout: 3000 } })).rejects.toThrow()
3232
})
3333

3434
test(`Search`, { timeout: 10000, concurrent: true }, async () => {
@@ -43,6 +43,7 @@ test(`Search`, { timeout: 10000, concurrent: true }, async () => {
4343
requireEditPermissions: false
4444
}
4545
})
46+
console.info(results)
4647
if (!(results.total > 0)) throw new Error('Search error')
4748
expect(results.recordMap.block).toBeTypeOf('object')
4849
})

packages/nreact/src/styles.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:root {
2-
--notion-font: ui-sans-serif, system-ui, apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji',
3-
Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
2+
--notion-font:
3+
ui-sans-serif, system-ui, apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial,
4+
sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
45
--fg-color: rgb(55, 53, 47);
56
--fg-color-0: rgba(55, 53, 47, 0.09);
67
--fg-color-1: rgba(55, 53, 47, 0.16);
@@ -604,7 +605,8 @@
604605
}
605606

606607
.notion-page-icon {
607-
font-family: 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Noto Color Emoji', 'Segoe UI Symbol', 'Android Emoji',
608+
font-family:
609+
'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Noto Color Emoji', 'Segoe UI Symbol', 'Android Emoji',
608610
EmojiSymbols;
609611
font-size: 1.1em;
610612
fill: var(--fg-color-6);

0 commit comments

Comments
 (0)