2026-03-14 12:43:40 +09:00
|
|
|
import { describe, it, expect } from "bun:test"
|
2026-03-14 13:52:57 +09:00
|
|
|
import { PLUGIN_NAME, CONFIG_BASENAME, LOG_FILENAME, CACHE_DIR_NAME } from "./plugin-identity"
|
2026-03-14 12:43:40 +09:00
|
|
|
|
|
|
|
|
describe("plugin-identity constants", () => {
|
|
|
|
|
describe("PLUGIN_NAME", () => {
|
2026-03-26 18:04:31 +09:00
|
|
|
it("equals oh-my-openagent", () => {
|
2026-03-14 12:43:40 +09:00
|
|
|
// given
|
|
|
|
|
|
|
|
|
|
// when
|
|
|
|
|
|
|
|
|
|
// then
|
2026-03-26 18:04:31 +09:00
|
|
|
expect(PLUGIN_NAME).toBe("oh-my-openagent")
|
2026-03-14 12:43:40 +09:00
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
describe("CONFIG_BASENAME", () => {
|
2026-03-26 18:04:31 +09:00
|
|
|
it("equals oh-my-openagent", () => {
|
2026-03-14 12:43:40 +09:00
|
|
|
// given
|
|
|
|
|
|
|
|
|
|
// when
|
|
|
|
|
|
|
|
|
|
// then
|
2026-03-26 18:04:31 +09:00
|
|
|
expect(CONFIG_BASENAME).toBe("oh-my-openagent")
|
2026-03-14 12:43:40 +09:00
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
describe("LOG_FILENAME", () => {
|
2026-03-14 13:52:57 +09:00
|
|
|
it("equals oh-my-opencode.log", () => {
|
2026-03-14 12:43:40 +09:00
|
|
|
// given
|
|
|
|
|
|
|
|
|
|
// when
|
|
|
|
|
|
|
|
|
|
// then
|
2026-03-14 13:52:57 +09:00
|
|
|
expect(LOG_FILENAME).toBe("oh-my-opencode.log")
|
2026-03-14 12:43:40 +09:00
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
describe("CACHE_DIR_NAME", () => {
|
|
|
|
|
it("equals oh-my-opencode", () => {
|
|
|
|
|
// given
|
|
|
|
|
|
|
|
|
|
// when
|
|
|
|
|
|
|
|
|
|
// then
|
2026-03-14 13:52:57 +09:00
|
|
|
expect(CACHE_DIR_NAME).toBe("oh-my-opencode")
|
2026-03-14 12:43:40 +09:00
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|