(content: string)
| 2311 | return { action, after: fs.readFileSync(file, 'utf-8') }; |
| 2312 | } |
| 2313 | function remove(content: string): { action: string; after: string | null } { |
| 2314 | fs.writeFileSync(file, content); |
| 2315 | const action = removeMarkedSection(file, START, END); |
| 2316 | return { action, after: fs.existsSync(file) ? fs.readFileSync(file, 'utf-8') : null }; |
| 2317 | } |
| 2318 | |
| 2319 | it('a stray start marker on the first line no longer reduces the file to the block (the report)', () => { |
| 2320 | const { action, after } = upsert(`${STRAY}${NOTES}\n\n${LEGACY_BLOCK}\n`); |
no test coverage detected