diff options
author | Matthew Miller <matthew@millerti.me> | 2020-06-02 11:51:28 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-06-02 11:51:28 -0700 |
commit | cac818173050ec1e18d73d0f880c826901cf4abd (patch) | |
tree | fcc2e378c500d933ea710b0b2efc3eea8627ada2 /packages/browser/src/helpers/toBase64String.test.ts | |
parent | 063282c49fc31570565348a0f1123b3d18a1e4b2 (diff) |
Add new Base64URL<->Buffer helper methods
Diffstat (limited to 'packages/browser/src/helpers/toBase64String.test.ts')
-rw-r--r-- | packages/browser/src/helpers/toBase64String.test.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/packages/browser/src/helpers/toBase64String.test.ts b/packages/browser/src/helpers/toBase64String.test.ts deleted file mode 100644 index bbcb11b..0000000 --- a/packages/browser/src/helpers/toBase64String.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import toBase64String from './toBase64String'; - -import toUint8Array from './toUint8Array'; - -test('should convert a Buffer to a string with a length that is a multiple of 4', () => { - const base64 = toBase64String(Buffer.from('123456', 'ascii')); - - expect(base64.length % 4).toEqual(0); -}); - -test('should convert a Uint8Array to a string with a length that is a multiple of 4', () => { - const base64 = toBase64String(toUint8Array('123456')); - - expect(base64.length % 4).toEqual(0); -}); |