feat: configurable status lines for CLI footer (#904)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
21
src/tests/cli/statusline-schema.test.ts
Normal file
21
src/tests/cli/statusline-schema.test.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import {
|
||||
STATUSLINE_DERIVED_FIELDS,
|
||||
STATUSLINE_NATIVE_FIELDS,
|
||||
} from "../../cli/helpers/statusLineSchema";
|
||||
|
||||
describe("statusLineSchema", () => {
|
||||
test("contains native and derived fields", () => {
|
||||
expect(STATUSLINE_NATIVE_FIELDS.length).toBeGreaterThan(0);
|
||||
expect(STATUSLINE_DERIVED_FIELDS.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test("field paths are unique", () => {
|
||||
const allPaths = [
|
||||
...STATUSLINE_NATIVE_FIELDS,
|
||||
...STATUSLINE_DERIVED_FIELDS,
|
||||
].map((f) => f.path);
|
||||
const unique = new Set(allPaths);
|
||||
expect(unique.size).toBe(allPaths.length);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user