feat: implement chroma key operation and related keybinds, update workspace panel management
This commit is contained in:
13
commands/workspace.test.ts
Normal file
13
commands/workspace.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { createInitialAppState } from "@editor/initial-state";
|
||||
import { workspaceSetPanelCommand } from "./workspace";
|
||||
|
||||
describe("workspace commands", () => {
|
||||
test.each(["generate", "chromaKey"] as const)("opens the %s operation without changing the persistent tool", (panel) => {
|
||||
const state = createInitialAppState("Test");
|
||||
const next = workspaceSetPanelCommand.execute({ state }, { panel });
|
||||
expect(next.editor.workspace.panel).toBe(panel);
|
||||
expect(next.editor.tools.activeTool).toBe("select");
|
||||
expect(next.editor.tools.interactionMode).toEqual({ type: "tool", tool: "select" });
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user