Skip to content

Commit

Permalink
Added test for Buffer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brettritter-okta committed Feb 22, 2019
1 parent b7cee22 commit fb21fe9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});


Expand Down

0 comments on commit fb21fe9

Please sign in to comment.