From: Romain Beauxis Date: Mon, 26 Aug 2013 14:58:31 +0000 (-0500) Subject: Added test for base64 strings without padding. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4b50f1dbff03674d9285ef98fbd52db63fbdc57a;p=buffer.git Added test for base64 strings without padding. --- diff --git a/test/buffer.js b/test/buffer.js index 74c939e..34ca567 100644 --- a/test/buffer.js +++ b/test/buffer.js @@ -253,3 +253,9 @@ test('buffer.slice out of range', function (t) { t.equal((new B('hallo')).slice(10, 2).toString(), ''); t.end(); }); + +test('base64 strings without padding', function (t) { + t.plan(1); + t.equal((new B('YW9ldQ', 'base64').toString()), 'aoeu'); + t.end(); +});