| 1 | import { describe, expect, it } from "bun:test"; |
| 2 | |
| 3 | import { formatBytes } |
| 4 | |
| 5 | describe("formatBytes", () |
| 6 | it("keeps bytes whole and gives larger units one decimal", |
| 7 | expect(formatBytes(0)) |
| 8 | expect(formatBytes(1023)) |
| 9 | expect(formatBytes(1536)) |
| 10 | expect(formatBytes(5 |
| 11 | expect(formatBytes(1024 |
| 12 | }); |
| 13 | }); |