(content: string)
| 348 | } |
| 349 | |
| 350 | const count = (content: string) => { |
| 351 | const crlf = content.match(/\r\n/g)?.length ?? 0 |
| 352 | const lf = content.match(/\n/g)?.length ?? 0 |
| 353 | return { |
| 354 | crlf, |
| 355 | lf: lf - crlf, |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | const expectLf = (content: string) => { |
| 360 | const counts = count(content) |
no outgoing calls
no test coverage detected