mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 06:12:26 +00:00
13 lines
437 B
TypeScript
13 lines
437 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
import { Database } from "../../src/storage/db"
|
|
|
|
describe("Database.file", () => {
|
|
test("uses the shared database for latest", () => {
|
|
expect(Database.file("latest")).toBe("opencode.db")
|
|
})
|
|
|
|
test("sanitizes preview channels for filenames", () => {
|
|
expect(Database.file("fix/windows-modified-files-tracking")).toBe("opencode-fix-windows-modified-files-tracking.db")
|
|
})
|
|
})
|