mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-21 22:52:19 +03:00
chore: remove unused notion client type (#5399)
Integrated into release/v3.8.42
This commit is contained in:
@@ -245,5 +245,3 @@ export function createNotionClient(apiKey: string) {
|
||||
|
||||
return client;
|
||||
}
|
||||
|
||||
export type NotionClient = ReturnType<typeof createNotionClient>;
|
||||
|
||||
@@ -45,6 +45,14 @@ test("NotionTimeoutError has correct name", () => {
|
||||
test("createNotionClient returns object with expected methods", async () => {
|
||||
const { createNotionClient } = await import("../../src/lib/notion/api.ts");
|
||||
const client = createNotionClient("test-token");
|
||||
assert.deepEqual(Object.keys(client), [
|
||||
"searchPagesAndDatabases",
|
||||
"getPage",
|
||||
"listBlockChildren",
|
||||
"queryDatabase",
|
||||
"getDatabase",
|
||||
"appendBlocks",
|
||||
]);
|
||||
assert.equal(typeof client.searchPagesAndDatabases, "function");
|
||||
assert.equal(typeof client.getPage, "function");
|
||||
assert.equal(typeof client.listBlockChildren, "function");
|
||||
|
||||
Reference in New Issue
Block a user