diff --git a/test/builder.js b/test/builder.js index a0a33b2..45310d8 100644 --- a/test/builder.js +++ b/test/builder.js @@ -107,6 +107,12 @@ describe('base64 URL Encoding',function(){ ); }); + + it('does not create an uninitialized Buffer', function() { + var fromDigits = nJwt.base64urlEncode(10); + var fromString = nJwt.base64urlEncode('10'); + assert.equal(fromDigits, fromString); + }); });