(string: string)
| 29 | // Add extra line breaks at beginning and end of multiline snapshot |
| 30 | // to make the content easier to read. |
| 31 | export const addExtraLineBreaks = (string: string): string => |
| 32 | string.includes('\n') ? `\n${string}\n` : string; |
| 33 | |
| 34 | // Remove extra line breaks at beginning and end of multiline snapshot. |
| 35 | // Instead of trim, which can remove additional newlines or spaces |
no outgoing calls
no test coverage detected