mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 16:02:50 +00:00
10 lines
372 B
TypeScript
10 lines
372 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { formatBase64PayloadByteCount } from './base64-payload-byte-count'
|
|
|
|
describe('formatBase64PayloadByteCount', () => {
|
|
it('reports decoded binary size for base64 payloads', () => {
|
|
const payload = Buffer.from('png-data').toString('base64')
|
|
expect(formatBase64PayloadByteCount(payload)).toBe('8 bytes')
|
|
})
|
|
})
|