diff options
| author | polwex <polwex@sortug.com> | 2025-10-19 12:54:25 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-19 12:54:25 +0700 |
| commit | 8815d3c1d40550470c5bc972bc16bd4966735154 (patch) | |
| tree | 92ef606b568035b9e88d89286be3330f4b84af1e /tests/index.test.ts | |
| parent | ba16ebcbe36c1a1cbdb1d1379cb3f9c3a086acdf (diff) | |
Diffstat (limited to 'tests/index.test.ts')
| -rw-r--r-- | tests/index.test.ts | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/tests/index.test.ts b/tests/index.test.ts deleted file mode 100644 index 1c328fa..0000000 --- a/tests/index.test.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { describe, expect, test } from "bun:test"; -import selectModel from "../index"; - -describe("Model selector smoke tests", () => { - // test("chatgpt model instantiates correctly and basic send works", async () => { - // const api = selectModel({ chatgpt: "" }); - // expect(api).toBeDefined(); - // expect(typeof api.send).toBe("function"); - // expect(typeof api.stream).toBe("function"); - // expect(typeof api.setModel).toBe("function"); - // expect(typeof api.tokenizer).toBe("function"); - // expect(typeof api.maxTokens).toBe("number"); - // const res = await api.send("hello"); - // expect(res).toBeTruthy(); - // expect(typeof (res.ok ?? res.error)).toBe("string"); - // }); - // test("gemini model instantiates correctly and basic send works", async () => { - // const api = selectModel({ gemini: "" }); - // expect(api).toBeDefined(); - // expect(typeof api.send).toBe("function"); - // expect(typeof api.stream).toBe("function"); - // const res = await api.send("hello"); - // console.log({ res }); - // }); - // test("claude model instantiates correctly and basic send works", async () => { - // const api = selectModel({ claude: "" }); - // expect(api).toBeDefined(); - // expect(typeof api.send).toBe("function"); - // expect(typeof api.stream).toBe("function"); - // const res = await api.send("hello"); - // expect(res).toBeTruthy(); - // expect(typeof (res.ok ?? res.error)).toBe("string"); - // }); - // test("deepseek model instantiates correctly and basic send works", async () => { - // const api = selectModel({ deepseek: "" }); - // expect(api).toBeDefined(); - // expect(typeof api.send).toBe("function"); - // expect(typeof api.stream).toBe("function"); - // const res = await api.send("hello"); - // expect(res).toBeTruthy(); - // expect(typeof (res.ok ?? res.error)).toBe("string"); - // }); - // test("kimi model instantiates correctly and basic send works", async () => { - // const api = selectModel({ kimi: "" }); - // expect(api).toBeDefined(); - // expect(typeof api.send).toBe("function"); - // expect(typeof api.stream).toBe("function"); - // const res = await api.send("hello"); - // expect(res).toBeTruthy(); - // expect(typeof (res.ok ?? res.error)).toBe("string"); - // }); - // test("grok model instantiates correctly and basic send works", async () => { - // const api = selectModel({ grok: "" }); - // expect(api).toBeDefined(); - // expect(typeof api.send).toBe("function"); - // expect(typeof api.stream).toBe("function"); - // const res = await api.send("hello"); - // expect(res).toBeTruthy(); - // expect(typeof (res.ok ?? res.error)).toBe("string"); - // }); -}); |
