1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-12-13 14:18:28 +09:00
whippy-edition/app/javascript/mastodon/utils/__tests__/base64-test.js

11 lines
262 B
JavaScript
Raw Normal View History

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]));
});
});
});