From 4b50f1dbff03674d9285ef98fbd52db63fbdc57a Mon Sep 17 00:00:00 2001 From: Romain Beauxis Date: Mon, 26 Aug 2013 09:58:31 -0500 Subject: [PATCH] Added test for base64 strings without padding. --- test/buffer.js | 6 ++++++ 1 file changed, 6 insertions(+) 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(); +}); -- 2.34.1