20 lines
362 B
TypeScript
20 lines
362 B
TypeScript
import {
|
|
describe,
|
|
expect,
|
|
it
|
|
} from 'vitest';
|
|
|
|
import { decodeBase64ToUint8Array } from './attachment-blob.rules';
|
|
|
|
describe('attachment blob rules', () => {
|
|
it('decodes base64 payloads into byte arrays', () => {
|
|
const bytes = decodeBase64ToUint8Array('QUJD');
|
|
|
|
expect(Array.from(bytes)).toEqual([
|
|
65,
|
|
66,
|
|
67
|
|
]);
|
|
});
|
|
});
|