10 lines
375 B
TypeScript
10 lines
375 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
import { parse } from "../../src/util/model"
|
|
|
|
describe("util.model", () => {
|
|
test("splits provider from a nested model identifier", () => {
|
|
expect(parse("provider/org/model")).toEqual({ providerID: "provider", modelID: "org/model" })
|
|
expect(parse("invalid")).toEqual({ providerID: "invalid", modelID: "" })
|
|
})
|
|
})
|