-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: update ts-sdk to include dataset routes
- Loading branch information
1 parent
de0a2f4
commit 6651ab5
Showing
7 changed files
with
544 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { beforeAll, describe, expectTypeOf } from "vitest"; | ||
import { TrieveSDK } from "../../sdk"; | ||
import { EventReturn } from "../../types.gen"; | ||
import { TRIEVE } from "../../__tests__/constants"; | ||
import { test } from "../../__tests__/utils"; | ||
|
||
describe("Events Tests", async () => { | ||
let trieve: TrieveSDK; | ||
beforeAll(() => { | ||
trieve = TRIEVE; | ||
}); | ||
|
||
test("getEventsForDataset", async () => { | ||
const data = await trieve.getEventsForDataset({}); | ||
expectTypeOf(data).toEqualTypeOf<EventReturn>(); | ||
}); | ||
}); |
Oops, something went wrong.