(overrides: Partial<TFile> = {})
| 80 | const TEMPLATE_PATH = "templates/tpl.md"; |
| 81 | |
| 82 | function makeFile(overrides: Partial<TFile> = {}): TFile { |
| 83 | const file = new TFile(); |
| 84 | file.path = "notes/My note.md"; |
| 85 | file.basename = "My note"; |
| 86 | file.extension = "md"; |
| 87 | Object.assign(file, overrides); |
| 88 | return file; |
| 89 | } |
| 90 | |
| 91 | function makeTemplateChoice( |
| 92 | overrides: Partial<ITemplateChoice> = {}, |
no outgoing calls
no test coverage detected