(bytes)
| 10 | } |
| 11 | |
| 12 | export function formatPostContentSize(bytes) { |
| 13 | return `${(bytes / 1000 / 1000).toFixed(2)} MB`; |
| 14 | } |
| 15 | |
| 16 | function assertPostContentWithinLimit(content) { |
| 17 | const size = getUtf8ByteLength(content); |
no outgoing calls
no test coverage detected