Count the drawer's edge row, let the drawer shrink in the conversation's place, and name clicked files from the workspace
This commit is contained in:
1 parent
0d7a5cc051
commit
2e531df11b
4 files changed
+44
-6
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
|
||||
import { cycleConfig, DEFAULT_CONFIG, formatClock, parseConfig } from "../src/config.ts";
|
||||
import { DEFAULT_LAYOUT, parseLayout } from "../src/layout.ts";
|
||||
import { settingRows } from "../src/model/settings.ts";
|
||||
|
||||
describe("config", () => {
|
||||
@@ -32,3 +33,11 @@ describe("config", () => {
|
||||
expect(rows[0]?.value).toBe("queues");
|
||||
});
|
||||
});
|
||||
|
||||
describe("layout", () => {
|
||||
test("keeps the drawer's height and where terminals go, and defaults the rest", () => {
|
||||
expect(parseLayout({ drawerHeight: 14, terminalPlacement: "side" })).toEqual({ ...DEFAULT_LAYOUT, drawerHeight: 14, terminalPlacement: "side" });
|
||||
expect(parseLayout({ drawerHeight: -3, terminalPlacement: "left" })).toEqual(DEFAULT_LAYOUT);
|
||||
expect(parseLayout(null)).toEqual(DEFAULT_LAYOUT);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user