mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 21:15:57 +03:00
14 lines
643 B
TypeScript
14 lines
643 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
import { homeFooterVisibility } from "../../src/feature-plugins/home/footer"
|
|
|
|
describe("home footer visibility", () => {
|
|
test("keeps failure labels readable at the minimum supported width", () => {
|
|
expect(homeFooterVisibility(44)).toEqual({ mcpCommand: false, pluginCommand: false, version: false })
|
|
})
|
|
|
|
test("adds secondary hints as space becomes available", () => {
|
|
expect(homeFooterVisibility(64)).toEqual({ mcpCommand: true, pluginCommand: false, version: true })
|
|
expect(homeFooterVisibility(80)).toEqual({ mcpCommand: true, pluginCommand: true, version: true })
|
|
})
|
|
})
|