(
options: {
id?: string;
name?: string;
commands?: ICommand[];
} = {},
)
| 53 | } |
| 54 | |
| 55 | function 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 | |
| 81 | describe("packageImportService", () => { |
| 82 | beforeEach(() => { |
no outgoing calls
no test coverage detected