Fix base64 test

This commit is contained in:
Alex Gleason 2024-10-15 16:10:15 -05:00
parent d0211c8af1
commit f5c9b7d1b2
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 5 additions and 7 deletions

View File

@ -1,10 +1,8 @@
import * as base64 from './base64'; import { decodeBase64 } from './base64';
describe('base64', () => { describe('decodeBase64', () => {
describe('decode', () => {
it('returns a uint8 array', () => { it('returns a uint8 array', () => {
const arr = base64.decode('dGVzdA=='); const arr = decodeBase64('dGVzdA==');
expect(arr).toEqual(new Uint8Array([116, 101, 115, 116])); expect(arr).toEqual(new Uint8Array([116, 101, 115, 116]));
}); });
});
}); });