(
overrides: Partial<IOpenFileCommand> = {}
)
| 6 | import { OpenFileCommand } from "../types/macros/QuickCommands/OpenFileCommand"; |
| 7 | |
| 8 | function 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 | |
| 20 | describe("buildOpenFileOptions", () => { |
| 21 | it("respects explicit location when provided", () => { |
no outgoing calls
no test coverage detected