mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 02:36:52 +00:00
14 lines
447 B
TypeScript
14 lines
447 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
import { sidebarExpanded } from "./sidebar-shell-helpers"
|
|
|
|
describe("sidebarExpanded", () => {
|
|
test("expands on mobile regardless of desktop open state", () => {
|
|
expect(sidebarExpanded(true, false)).toBe(true)
|
|
})
|
|
|
|
test("follows desktop open state when not mobile", () => {
|
|
expect(sidebarExpanded(false, true)).toBe(true)
|
|
expect(sidebarExpanded(false, false)).toBe(false)
|
|
})
|
|
})
|