Fix base64 test
This commit is contained in:
parent
d0211c8af1
commit
f5c9b7d1b2
|
@ -1,10 +1,8 @@
|
|||
import * as base64 from './base64';
|
||||
import { decodeBase64 } from './base64';
|
||||
|
||||
describe('base64', () => {
|
||||
describe('decode', () => {
|
||||
describe('decodeBase64', () => {
|
||||
it('returns a uint8 array', () => {
|
||||
const arr = base64.decode('dGVzdA==');
|
||||
const arr = decodeBase64('dGVzdA==');
|
||||
expect(arr).toEqual(new Uint8Array([116, 101, 115, 116]));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue