Create standalone browser port of LTX Athena with authenticated native API transport

This commit is contained in:
Mikei386
2026-09-29 17:59:23 +02:00
commit 1333b0c36b
202 changed files with 63054 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import assert from 'node:assert/strict'
import { describe, it } from 'node:test'
import { formatBytes } from './format.ts'
describe('formatBytes', () => {
it('formats zero', () => {
assert.equal(formatBytes(0), '0 B')
})
it('formats megabytes with one decimal', () => {
assert.equal(formatBytes(996_000_000), '949.9 MB')
})
it('formats terabytes instead of overflowing the unit list', () => {
assert.equal(formatBytes(1.8 * 1024 ** 4), '1.8 TB')
})
})