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

Function makeMacroChoice

tests/packages/packageImportService.test.ts:55–79  ·  view source on GitHub ↗
(
	options: {
		id?: string;
		name?: string;
		commands?: ICommand[];
	} = {},
)

Source from the content-addressed store, hash-verified

53}
54
55function makeMacroChoice(
56 options: {
57 id?: string;
58 name?: string;
59 commands?: ICommand[];
60 } = {},
61): IMacroChoice {
62 const id = options.id ?? "macro-1";
63 const name = options.name ?? "Macro One";
64 const commands = options.commands ?? [];
65
66 return {
67 id,
68 name,
69 type: "Macro",
70 command: false,
71 runOnStartup: false,
72 onePageInput: undefined,
73 macro: {
74 id,
75 name,
76 commands: commands.map((command) => ({ ...command })),
77 },
78 };
79}
80
81describe("packageImportService", () => {
82 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected