MCPcopy Create free account
hub / github.com/chhoumann/quickadd / createCommand

Function createCommand

src/engine/MacroChoiceEngine.openFileOptions.test.ts:8–18  ·  view source on GitHub ↗
(
	overrides: Partial<IOpenFileCommand> = {}
)

Source from the content-addressed store, hash-verified

6import { OpenFileCommand } from "../types/macros/QuickCommands/OpenFileCommand";
7
8function createCommand(
9 overrides: Partial<IOpenFileCommand> = {}
10): IOpenFileCommand {
11 return {
12 id: "test-id",
13 name: "Open file: test.md",
14 type: overrides.type ?? CommandType.OpenFile,
15 filePath: "test.md",
16 ...overrides,
17 };
18}
19
20describe("buildOpenFileOptions", () => {
21 it("respects explicit location when provided", () => {

Calls

no outgoing calls

Tested by

no test coverage detected