mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-05 13:39:04 +01:00
11 lines
262 B
TypeScript
11 lines
262 B
TypeScript
|
import * as base64 from '../base64';
|
||
|
|
||
|
describe('base64', () => {
|
||
|
describe('decode', () => {
|
||
|
it('returns a uint8 array', () => {
|
||
|
const arr = base64.decode('dGVzdA==');
|
||
|
expect(arr).toEqual(new Uint8Array([116, 101, 115, 116]));
|
||
|
});
|
||
|
});
|
||
|
});
|