Files
oh-my-opencode/src/tools/slashcommand/index.test.ts
T

18 lines
520 B
TypeScript
Raw Normal View History

import { describe, expect, it } from "bun:test"
import * as slashcommand from "./index"
describe("slashcommand module exports", () => {
it("exports discovery API only", () => {
// given
const moduleExports = slashcommand as Record<string, unknown>
// when
const exportNames = Object.keys(moduleExports)
// then
expect(exportNames).toContain("discoverCommandsSync")
expect(exportNames).not.toContain("createSlashcommandTool")
expect(exportNames).not.toContain("slashcommand")
})
})